new Collection
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
array |
Array= |
<optional> |
(Optional) Array. |
- Source:
- collection.js, line 60
Extends
Members
-
changed
-
- Inherited From:
- Source:
- object.js, line 166
-
setValues
-
- Inherited From:
- Source:
- object.js, line 275
Methods
-
bindTo
-
Parameters:
Name Type Argument Description keystring Key. targetol.Object Target. targetKeystring= <optional>
(Optional) Target key. noNotifyboolean= <optional>
(Optional) No notify. - Inherited From:
- Source:
- object.js, line 145
-
clear
-
Remove all elements from the collection.
- Source:
- collection.js, line 79
-
extend
-
Parameters:
Name Type Description arrArray Array. - Source:
- collection.js, line 89
-
forEach
-
Parameters:
Name Type Argument Description fFunction Function. objObject= <optional>
(Optional) Object. - Source:
- collection.js, line 101
-
get
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 173
Returns:
Value.- Type
- *
-
getArray
-
- Source:
- collection.js, line 109
Returns:
Array.- Type
- Array
-
getAt
-
Parameters:
Name Type Description indexnumber Index. - Source:
- collection.js, line 118
Returns:
Element.- Type
- *
-
getKeys
-
Get a list of object property names.
- Inherited From:
- Source:
- object.js, line 197
Returns:
List of property names.- Type
- Array.<string>
-
getLength
-
- Source:
- collection.js, line 126
Returns:
Length.- Type
- number
-
insertAt
-
Parameters:
Name Type Description indexnumber Index. elem* Element. - Source:
- collection.js, line 135
-
notify
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 208
-
pop
-
- Source:
- collection.js, line 146
Returns:
Element.- Type
- *
-
push
-
Parameters:
Name Type Description elem* Element. - Source:
- collection.js, line 155
Returns:
Length.- Type
- number
-
remove
-
Removes the first occurence of elem from the collection.
Parameters:
Name Type Description elem* Element. - Source:
- collection.js, line 167
Returns:
The removed element or undefined if elem was not found.- Type
- *
-
removeAt
-
Parameters:
Name Type Description indexnumber Index. - Source:
- collection.js, line 182
Returns:
Value.- Type
- *
-
set
-
Parameters:
Name Type Description keystring Key. value* Value. - Inherited From:
- Source:
- object.js, line 236
-
setAt
-
Parameters:
Name Type Description indexnumber Index. elem* Element. - Source:
- collection.js, line 196
-
setOptions
-
Parameters:
Name Type Description optionsObject.<string, *> Options. - Inherited From:
- Source:
- object.js, line 258
-
unbind
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 281
-
unbindAll
-
Removes all bindings.
- Inherited From:
- Source:
- object.js, line 298