[OpenLayers-Commits] r3150 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Tue May 15 17:13:29 EDT 2007
Author: tschaub
Date: 2007-05-15 17:13:28 -0400 (Tue, 15 May 2007)
New Revision: 3150
Modified:
trunk/openlayers/lib/OpenLayers/BaseTypes.js
Log:
#694 - regarding inheritance of toString: for IE, check that instance has it's own toString - for Safari, just check toString
Modified: trunk/openlayers/lib/OpenLayers/BaseTypes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-05-15 21:10:13 UTC (rev 3149)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-05-15 21:13:28 UTC (rev 3150)
@@ -31,8 +31,9 @@
// 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;
}
}
More information about the Commits
mailing list