Array.indexOf(), though implemented in FF, is not standard javascript. we replace it with OpenLayers.Util.indexOf(), replace all usage

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-05 16:28:24 +00:00
parent d81c2f0187
commit 07ef71b7b0
4 changed files with 21 additions and 4 deletions

View File

@@ -243,7 +243,7 @@ OpenLayers.Layer.Grid.prototype =
var iRow = 0;
var iCell = -1;
var direction = directions.indexOf("right");
var direction = OpenLayers.Util.indexOf(directions, "right");
var directionsTried = 0;
while( directionsTried < directions.length) {