FredJ points out that this was never used or needed. I dug back and found out

that it was added in the Original Prototype -> No Prototype conversion -- 
but looking at the code, adding it was clearly a mistake. Removing 
String.indexOf. (Note that this has no affect on the code: this function
would never be called, because it wasn't defined on the prototoype.) 
(Closes #963)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-09-11 14:23:37 +00:00
parent 359c66ed52
commit ec8a6b05b3

View File

@@ -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.