From 2d35451a2e752b8686b2fb2531fb0d85482c4717 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Wed, 9 Aug 2006 23:40:38 +0000 Subject: [PATCH] Fix embarassing typo. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 03a17a5d45..220413f2b5 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -252,7 +252,7 @@ OpenLayers.LonLat.prototype = { equals:function(ll) { var equals = false; if (ll != null) { - equals = ((this.lon == ll.lon) && (this.lat == ll.lat)); + equals = ((this.lon == ll.lon && this.lat == ll.lat) || (isNaN(this.lon) && isNaN(this.lat) && isNaN(ll.lon) && isNaN(ll.lat))); } return equals;