add some ND comments to JavaScript object extensions

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-24 21:11:28 +00:00
parent 630239ce8f
commit 47014dc7d7
+12 -1
View File
@@ -16,6 +16,7 @@
/** /**
* APIFunction: String.startsWith * APIFunction: String.startsWith
* Whether or not a string starts with another string.
* *
* Parameters: * Parameters:
* sStart - {Sring} * sStart - {Sring}
@@ -29,6 +30,7 @@ String.prototype.startsWith = function(sStart) {
/** /**
* APIFunction: String.contains * APIFunction: String.contains
* Whether or not a string contains another string.
* *
* Parameters: * Parameters:
* str - {String} * str - {String}
@@ -42,6 +44,7 @@ String.prototype.contains = function(str) {
/** /**
* APIMethod: String.trim * APIMethod: String.trim
* Removes leading and trailing whitespace characters from a string.
* *
* Return: * Return:
* {String} A trimmed version of the string - all leading and * {String} A trimmed version of the string - all leading and
@@ -64,6 +67,7 @@ String.prototype.trim = function() {
/** /**
* APIFunction: String.indexOf * APIFunction: String.indexOf
* Index of a character in a string.
* *
* Parameters: * Parameters:
* object - {Object} Can be a string or a number * object - {Object} Can be a string or a number
@@ -79,6 +83,9 @@ String.indexOf = function(object) {
/** /**
* APIFunction: camelize * APIFunction: camelize
* Camel-case a hyphenated string.
* Ex. "chicken-head" becomes "chickenHead", and
* "-chicken-head" becomes "ChickenHead".
* *
* Return: * Return:
* {String} The string, camelized * {String} The string, camelized
@@ -108,7 +115,8 @@ String.prototype.camelize = function() {
/** /**
* APIFunction: Number.limitSigDigs * APIFunction: Number.limitSigDigs
* Works only with integer values does *not* work with floats! * Limit the number of significant digits on an integer. Does *not* work
* with floats!
* *
* Parameters: * Parameters:
* sig - {Integer} * sig - {Integer}
@@ -135,6 +143,7 @@ Number.prototype.limitSigDigs = function(sig) {
/** /**
* APIFunction: Function.bind * APIFunction: Function.bind
* Bind a function to an object.
* *
* Parameters: * Parameters:
* object - {Object} * object - {Object}
@@ -155,6 +164,8 @@ Function.prototype.bind = function() {
/** /**
* APIFunction: Function.bindAsEventListener * APIFunction: Function.bindAsEventListener
* Bind a function to an object, and configure it to receive the event object
* as first parameter when called.
* *
* Parameters: * Parameters:
* object - {Object} * object - {Object}