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:
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
/**
|
||||
* APIFunction: String.startsWith
|
||||
* APIMethod: String.startsWith
|
||||
* Whether or not a string starts with another string.
|
||||
*
|
||||
* Parameters:
|
||||
@@ -29,7 +29,7 @@ String.prototype.startsWith = function(sStart) {
|
||||
};
|
||||
|
||||
/**
|
||||
* APIFunction: String.contains
|
||||
* APIMethod: String.contains
|
||||
* Whether or not a string contains another string.
|
||||
*
|
||||
* Parameters:
|
||||
@@ -66,7 +66,7 @@ String.prototype.trim = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* APIFunction: String.indexOf
|
||||
* APIMethod: String.indexOf
|
||||
* Index of a character in a string.
|
||||
*
|
||||
* Parameters:
|
||||
@@ -87,7 +87,7 @@ String.indexOf = function(object) {
|
||||
};
|
||||
|
||||
/**
|
||||
* APIFunction: camelize
|
||||
* APIMethod: camelize
|
||||
* Camel-case a hyphenated string.
|
||||
* Ex. "chicken-head" becomes "chickenHead", and
|
||||
* "-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
|
||||
* with floats!
|
||||
*
|
||||
@@ -141,7 +141,7 @@ Number.prototype.limitSigDigs = function(sig) {
|
||||
*********************/
|
||||
|
||||
/**
|
||||
* APIFunction: Function.bind
|
||||
* APIMethod: Function.bind
|
||||
* Bind a function to an object.
|
||||
*
|
||||
* 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
|
||||
* as first parameter when called.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user