functions on objects are *methods*

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3813 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-25 21:38:41 +00:00
parent ef0a4697a4
commit 6d2e84892d
+7 -7
View File
@@ -15,7 +15,7 @@
/** /**
* APIFunction: String.startsWith * APIMethod: String.startsWith
* Whether or not a string starts with another string. * Whether or not a string starts with another string.
* *
* Parameters: * Parameters:
@@ -29,7 +29,7 @@ String.prototype.startsWith = function(sStart) {
}; };
/** /**
* APIFunction: String.contains * APIMethod: String.contains
* Whether or not a string contains another string. * Whether or not a string contains another string.
* *
* Parameters: * Parameters:
@@ -66,7 +66,7 @@ String.prototype.trim = function() {
}; };
/** /**
* APIFunction: String.indexOf * APIMethod: String.indexOf
* Index of a character in a string. * Index of a character in a string.
* *
* Parameters: * Parameters:
@@ -87,7 +87,7 @@ String.indexOf = function(object) {
}; };
/** /**
* APIFunction: camelize * APIMethod: camelize
* Camel-case a hyphenated string. * Camel-case a hyphenated string.
* Ex. "chicken-head" becomes "chickenHead", and * Ex. "chicken-head" becomes "chickenHead", and
* "-chicken-head" becomes "ChickenHead". * "-chicken-head" becomes "ChickenHead".
@@ -113,7 +113,7 @@ String.prototype.camelize = function() {
*********************/ *********************/
/** /**
* APIFunction: Number.limitSigDigs * APIMethod: Number.limitSigDigs
* Limit the number of significant digits on an integer. Does *not* work * Limit the number of significant digits on an integer. Does *not* work
* with floats! * with floats!
* *
@@ -141,7 +141,7 @@ Number.prototype.limitSigDigs = function(sig) {
*********************/ *********************/
/** /**
* APIFunction: Function.bind * APIMethod: Function.bind
* Bind a function to an object. * Bind a function to an object.
* *
* Parameters: * Parameters:
@@ -168,7 +168,7 @@ Function.prototype.bind = function() {
}; };
/** /**
* APIFunction: Function.bindAsEventListener * APIMethod: Function.bindAsEventListener
* Bind a function to an object, and configure it to receive the event object * Bind a function to an object, and configure it to receive the event object
* as first parameter when called. * as first parameter when called.
* *