diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 6d5f3d0892..03a17a5d45 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -65,7 +65,7 @@ OpenLayers.Pixel.prototype = { var equals = false; if (px != null) { equals = ((this.x == px.x && this.y == px.y) || - (isNaN(this.x) && isNaN(this.y) && isNaN(px.x) && isNaN(px.y)); + (isNaN(this.x) && isNaN(this.y) && isNaN(px.x) && isNaN(px.y))); } return equals; }, @@ -161,7 +161,7 @@ OpenLayers.Size.prototype = { var equals = false; if (sz != null) { equals = ((this.w == sz.w && this.h == sz.h) || - (isNaN(this.w) && isNaN(this.h) && isNaN(px.w) && isNaN(px.h)); + (isNaN(this.w) && isNaN(this.h) && isNaN(px.w) && isNaN(px.h))); } return equals; }, @@ -253,7 +253,7 @@ OpenLayers.LonLat.prototype = { var equals = false; if (ll != null) { equals = ((this.lon == ll.lon) && (this.lat == ll.lat)); - (isNaN(this.lon) && isNaN(this.lat) && isNaN(ll.lon) && isNaN(ll.lat)); + (isNaN(this.lon) && isNaN(this.lat) && isNaN(ll.lon) && isNaN(ll.lat))); } return equals; },