[fusion-commits] r2182 - sandbox/jxlib-3.0/lib/OpenLayers

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Jun 21 11:30:13 EDT 2010


Author: madair
Date: 2010-06-21 15:30:13 +0000 (Mon, 21 Jun 2010)
New Revision: 2182

Modified:
   sandbox/jxlib-3.0/lib/OpenLayers/OpenLayers.js
Log:
temporary fix for IE7 issue with getElementById

Modified: sandbox/jxlib-3.0/lib/OpenLayers/OpenLayers.js
===================================================================
--- sandbox/jxlib-3.0/lib/OpenLayers/OpenLayers.js	2010-06-04 13:57:29 UTC (rev 2181)
+++ sandbox/jxlib-3.0/lib/OpenLayers/OpenLayers.js	2010-06-21 15:30:13 UTC (rev 2182)
@@ -433,6 +433,7 @@
     for (var i=0, len=arguments.length; i<len; i++) {
         var element = arguments[i];
         if (typeof element == 'string') {
+            if (element == '') return null;
             element = document.getElementById(element);
         }
         if (arguments.length == 1) {
@@ -27453,13 +27454,13 @@
         }
 
     },
-    
-    /**
-     * Method: onMapResize
-     */
-    onMapResize: function() {
-        this.mapObject.Resize(this.map.size.w, this.map.size.h);
-    },
+    
+    /**
+     * Method: onMapResize
+     */
+    onMapResize: function() {
+        this.mapObject.Resize(this.map.size.w, this.map.size.h);
+    },
 
     /** 
      * APIMethod: getWarningHTML



More information about the fusion-commits mailing list