diff --git a/lib/OpenLayers/BaseTypes/Class.js b/lib/OpenLayers/BaseTypes/Class.js index 6f64d3f961..1e242f55bb 100644 --- a/lib/OpenLayers/BaseTypes/Class.js +++ b/lib/OpenLayers/BaseTypes/Class.js @@ -91,7 +91,7 @@ OpenLayers.Util.extend = function(destination, source) { destination = destination || {}; if (source) { for (var property in source) { - if (Object.prototype.hasOwnProperty.call(source, property)) { + if (source.hasOwnProperty(property)) { var value = source[property]; if (value !== undefined) { destination[property] = value; diff --git a/tests/Util.html b/tests/Util.html index e137d0f7ce..43db83c06d 100644 --- a/tests/Util.html +++ b/tests/Util.html @@ -1120,34 +1120,10 @@ t.eq(OpenLayers.Util.getFormattedLonLat(-181, "lon"), "179°00'00\"E", "crossing dateline from the west results in correct east coordinate"); t.eq(OpenLayers.Util.getFormattedLonLat(181, "lon"), "179°00'00\"W", "crossing dateline from the east results in correct west coordinate"); } +
-