[OpenLayers-Commits] r5124 - sandbox/ahocevar/sldRenderer/lib/OpenLayers/Tile

commits at openlayers.org commits at openlayers.org
Tue Nov 6 11:27:49 EST 2007


Author: ahocevar
Date: 2007-11-06 11:27:47 -0500 (Tue, 06 Nov 2007)
New Revision: 5124

Modified:
   sandbox/ahocevar/sldRenderer/lib/OpenLayers/Tile/Image.js
Log:
reverted from r5123 to r5024, because a patch from another ticket was accidently applied

Modified: sandbox/ahocevar/sldRenderer/lib/OpenLayers/Tile/Image.js
===================================================================
--- sandbox/ahocevar/sldRenderer/lib/OpenLayers/Tile/Image.js	2007-11-06 16:21:46 UTC (rev 5123)
+++ sandbox/ahocevar/sldRenderer/lib/OpenLayers/Tile/Image.js	2007-11-06 16:27:47 UTC (rev 5124)
@@ -207,21 +207,6 @@
         OpenLayers.Event.observe(this.imgDiv, 'load',
                                  OpenLayers.Function.bind(onload, this));
 
-        // Bind a listener to the onerror of the image div so that we
-        // can registere when a tile has finished loading with errors.
-        var onerror = function() {
-
-            // If we have gone through all image reload attempts, it is time
-            // to realize that we are done with this image. Since
-            // OpenLayers.Util.onImageLoadError already has taken care about
-            // the error, we can continue as if the image was loaded
-            // successfully.
-            if (this.imgDiv._attempts > OpenLayers.IMAGE_RELOAD_ATTEMPTS) {
-                onload();
-            }
-        };
-        OpenLayers.Event.observe(this.imgDiv, "error",
-                                 OpenLayers.Function.bind(onerror, this));
     },
 
     /**



More information about the Commits mailing list