diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index 4537e6a99c..bc9f648c83 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -54,27 +54,6 @@ String.prototype.trim = function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); }; -/** - * APIMethod: String.indexOf - * Index of a character in a string. - * - * Parameters: - * object - {Object} Can be a string or a number - * - * Returns: - * {Integer} The index of the encountered object, or -1 if not found. - */ -String.indexOf = function(object) { - var index = -1; - for (var i = 0; i < this.length; i++) { - if (this[i] == object) { - index = i; - break; - } - } - return index; -}; - /** * APIMethod: camelize * Camel-case a hyphenated string.