[OpenLayers-Commits] r4216 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Tue Sep 11 10:23:38 EDT 2007
Author: crschmidt
Date: 2007-09-11 10:23:37 -0400 (Tue, 11 Sep 2007)
New Revision: 4216
Modified:
trunk/openlayers/lib/OpenLayers/BaseTypes.js
Log:
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)
Modified: trunk/openlayers/lib/OpenLayers/BaseTypes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-09-11 14:16:34 UTC (rev 4215)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-09-11 14:23:37 UTC (rev 4216)
@@ -55,27 +55,6 @@
};
/**
- * 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.
* Ex. "chicken-head" becomes "chickenHead", and
More information about the Commits
mailing list