diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index fcf9bb9e55..6260212cc2 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -147,17 +147,21 @@ OpenLayers.Util.clearArray = function(array) { * obj - {Object} * * Returns: - * {Integer} The index at, which the object was found in the array. + * {Integer} The index at, which the first object was found in the array. * If not found, returns -1. */ OpenLayers.Util.indexOf = function(array, obj) { - - for(var i=0, len=array.length; i