#694 - regarding inheritance of toString: for IE, check that instance has it's own toString - for Safari, just check toString

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-05-15 21:13:28 +00:00
parent e4599ea06f
commit 74c08dd582

View File

@@ -31,8 +31,9 @@ OpenLayers.Class = {
// so the util.extend() doesnt copy it over. we do it manually.
//
// to be revisited in 3.0
//
if (arguments[i].hasOwnProperty('toString')) {
//
if((arguments[i].hasOwnProperty && arguments[i].hasOwnProperty('toString')) ||
(!arguments[i].hasOwnProperty && arguments[i].toString)) {
proto.toString = arguments[i].toString;
}
}