Dividing base types into namespaces (docs only). (see #1504)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-04-09 12:33:26 +00:00
parent ac181918a2
commit 67b796d88b
+28 -36
View File
@@ -17,16 +17,14 @@
* OpenLayers custom string, number and function functions are described here. * OpenLayers custom string, number and function functions are described here.
*/ */
/********************* /**
* * * Namespace: OpenLayers.String
* STRING * * Contains convenience functions for string manipulation.
* * */
*********************/
OpenLayers.String = { OpenLayers.String = {
/** /**
* APIFunction: OpenLayers.String.startsWith * APIFunction: startsWith
* Test whether a string starts with another string. * Test whether a string starts with another string.
* *
* Parameters: * Parameters:
@@ -41,7 +39,7 @@ OpenLayers.String = {
}, },
/** /**
* APIFunction: OpenLayers.String.contains * APIFunction: contains
* Test whether a string contains another string. * Test whether a string contains another string.
* *
* Parameters: * Parameters:
@@ -56,7 +54,7 @@ OpenLayers.String = {
}, },
/** /**
* APIFunction: OpenLayers.String.trim * APIFunction: trim
* Removes leading and trailing whitespace characters from a string. * Removes leading and trailing whitespace characters from a string.
* *
* Parameters: * Parameters:
@@ -72,7 +70,7 @@ OpenLayers.String = {
}, },
/** /**
* APIFunction: OpenLayers.String.camelize * APIFunction: 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".
@@ -94,7 +92,7 @@ OpenLayers.String = {
}, },
/** /**
* APIFunction: OpenLayers.String.format * APIFunction: format
* Given a string with tokens in the form ${token}, return a string * Given a string with tokens in the form ${token}, return a string
* with tokens replaced with properties from the given context * with tokens replaced with properties from the given context
* object. Represent a literal "${" by doubling it, e.g. "${${". * object. Represent a literal "${" by doubling it, e.g. "${${".
@@ -209,28 +207,26 @@ if (!String.prototype.camelize) {
}; };
} }
/********************* /**
* * * Namespace: OpenLayers.Number
* NUMBER * * Contains convenience functions for manipulating numbers.
* * */
*********************/
OpenLayers.Number = { OpenLayers.Number = {
/** /**
* Property: OpenLayers.Number.decimalSeparator * Property: decimalSeparator
* Decimal separator to use when formatting numbers. * Decimal separator to use when formatting numbers.
*/ */
decimalSeparator: ".", decimalSeparator: ".",
/** /**
* Property: OpenLayers.Number.thousandsSeparator * Property: thousandsSeparator
* Thousands separator to use when formatting numbers. * Thousands separator to use when formatting numbers.
*/ */
thousandsSeparator: ",", thousandsSeparator: ",",
/** /**
* APIFunction: OpenLayers.Number.limitSigDigs * APIFunction: limitSigDigs
* Limit the number of significant digits on a float. * Limit the number of significant digits on a float.
* *
* Parameters: * Parameters:
@@ -250,7 +246,7 @@ OpenLayers.Number = {
}, },
/** /**
* APIFunction: OpenLayers.Number.format * APIFunction: format
* Formats a number for output. * Formats a number for output.
* *
* Parameters: * Parameters:
@@ -324,15 +320,13 @@ if (!Number.prototype.limitSigDigs) {
}; };
} }
/********************* /**
* * * Namespace: OpenLayers.Function
* FUNCTION * * Contains convenience functions for function manipulation.
* * */
*********************/
OpenLayers.Function = { OpenLayers.Function = {
/** /**
* APIFunction: OpenLayers.Function.bind * APIFunction: bind
* Bind a function to an object. Method to easily create closures with * Bind a function to an object. Method to easily create closures with
* 'this' altered. * 'this' altered.
* *
@@ -357,7 +351,7 @@ OpenLayers.Function = {
}, },
/** /**
* APIFunction: OpenLayers.Function.bindAsEventListener * APIFunction: bindAsEventListener
* Bind a function to an object, and configure it to receive the event * Bind a function to an object, and configure it to receive the event
* object as first parameter when called. * object as first parameter when called.
* *
@@ -416,16 +410,14 @@ if (!Function.prototype.bindAsEventListener) {
}; };
} }
/********************* /**
* * * Namespace: OpenLayers.Array
* ARRAY * * Contains convenience functions for array manipulation.
* * */
*********************/
OpenLayers.Array = { OpenLayers.Array = {
/** /**
* APIMethod: OpenLayers.Array.filter * APIMethod: filter
* Filter an array. Provides the functionality of the * Filter an array. Provides the functionality of the
* Array.prototype.filter extension to the ECMA-262 standard. Where * Array.prototype.filter extension to the ECMA-262 standard. Where
* available, Array.prototype.filter will be used. * available, Array.prototype.filter will be used.