#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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user