From 206e97ad0d7048bb61a61bec339e34fa9d5185fa Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Wed, 9 Aug 2006 23:39:47 +0000 Subject: [PATCH] Check to see if values are NaN in *.equals(). git-svn-id: http://svn.openlayers.org/trunk/openlayers@1179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; },