Caching array length instead of accessing it with each iteration. r=crschmidt (closes #1636)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -103,7 +103,7 @@ OpenLayers.Handler.MouseWheel = OpenLayers.Class(OpenLayers.Handler, {
|
||||
}
|
||||
|
||||
if (!overLayerDiv) {
|
||||
for(var i=0; i < this.map.layers.length; i++) {
|
||||
for(var i=0, len=this.map.layers.length; i<len; i++) {
|
||||
// Are we in the layer div? Note that we have two cases
|
||||
// here: one is to catch EventPane layers, which have a
|
||||
// pane above the layer (layer.pane)
|
||||
|
||||
Reference in New Issue
Block a user