Changeset 6829
- Timestamp:
- 04/09/08 08:33:26 (9 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/BaseTypes.js (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/BaseTypes.js
r6512 r6829 18 18 */ 19 19 20 /********************* 21 * * 22 * STRING * 23 * * 24 *********************/ 25 20 /** 21 * Namespace: OpenLayers.String 22 * Contains convenience functions for string manipulation. 23 */ 26 24 OpenLayers.String = { 27 25 28 26 /** 29 * APIFunction: OpenLayers.String.startsWith27 * APIFunction: startsWith 30 28 * Test whether a string starts with another string. 31 29 * … … 42 40 43 41 /** 44 * APIFunction: OpenLayers.String.contains42 * APIFunction: contains 45 43 * Test whether a string contains another string. 46 44 * … … 57 55 58 56 /** 59 * APIFunction: OpenLayers.String.trim57 * APIFunction: trim 60 58 * Removes leading and trailing whitespace characters from a string. 61 59 * … … 73 71 74 72 /** 75 * APIFunction: OpenLayers.String.camelize73 * APIFunction: camelize 76 74 * Camel-case a hyphenated string. 77 75 * Ex. "chicken-head" becomes "chickenHead", and … … 95 93 96 94 /** 97 * APIFunction: OpenLayers.String.format95 * APIFunction: format 98 96 * Given a string with tokens in the form ${token}, return a string 99 97 * with tokens replaced with properties from the given context … … 210 208 } 211 209 212 /********************* 213 * * 214 * NUMBER * 215 * * 216 *********************/ 217 210 /** 211 * Namespace: OpenLayers.Number 212 * Contains convenience functions for manipulating numbers. 213 */ 218 214 OpenLayers.Number = { 219 215 220 216 /** 221 * Property: OpenLayers.Number.decimalSeparator217 * Property: decimalSeparator 222 218 * Decimal separator to use when formatting numbers. 223 219 */ … … 225 221 226 222 /** 227 * Property: OpenLayers.Number.thousandsSeparator223 * Property: thousandsSeparator 228 224 * Thousands separator to use when formatting numbers. 229 225 */ … … 231 227 232 228 /** 233 * APIFunction: OpenLayers.Number.limitSigDigs229 * APIFunction: limitSigDigs 234 230 * Limit the number of significant digits on a float. 235 231 * … … 251 247 252 248 /** 253 * APIFunction: OpenLayers.Number.format249 * APIFunction: format 254 250 * Formats a number for output. 255 251 * … … 325 321 } 326 322 327 /********************* 328 * * 329 * FUNCTION * 330 * * 331 *********************/ 332 323 /** 324 * Namespace: OpenLayers.Function 325 * Contains convenience functions for function manipulation. 326 */ 333 327 OpenLayers.Function = { 334 328 /** 335 * APIFunction: OpenLayers.Function.bind329 * APIFunction: bind 336 330 * Bind a function to an object. Method to easily create closures with 337 331 * 'this' altered. … … 358 352 359 353 /** 360 * APIFunction: OpenLayers.Function.bindAsEventListener354 * APIFunction: bindAsEventListener 361 355 * Bind a function to an object, and configure it to receive the event 362 356 * object as first parameter when called. … … 417 411 } 418 412 419 /********************* 420 * * 421 * ARRAY * 422 * * 423 *********************/ 424 413 /** 414 * Namespace: OpenLayers.Array 415 * Contains convenience functions for array manipulation. 416 */ 425 417 OpenLayers.Array = { 426 418 427 419 /** 428 * APIMethod: OpenLayers.Array.filter420 * APIMethod: filter 429 421 * Filter an array. Provides the functionality of the 430 422 * Array.prototype.filter extension to the ECMA-262 standard. Where
