#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:
@@ -32,7 +32,8 @@ OpenLayers.Class = {
|
|||||||
//
|
//
|
||||||
// to be revisited in 3.0
|
// 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;
|
proto.toString = arguments[i].toString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user