new CallbackList()
Extends
Methods
-
inherited clear()
-
Clears this list.
-
contains(callback){boolean}
-
Verifies whether the given item is included in this list.
Name Type Description callback
Callback CallbackType that should be verified.
Returns:
Type Description boolean -
equals(callbackList){boolean}
-
Compare the specified CallbackList with this instance.
Name Type Description callbackList
CallbackList CallbackList that should be compared.
Returns:
Type Description boolean -
inherited getItem(key){*}
-
Returns the item for the specified key.
Name Type Description key
string key that should be searched for
Returns:
Type Description * -
inherited abstractgetItems(){Array}
-
Returns all items.
Returns:
Type Description Array -
inherited getKeys(){Array}
-
Returns the keys of all items.
Returns:
Type Description Array -
inherited isEmpty(){boolean}
-
Verifies whether the list is empty.
Returns:
Type Description boolean -
put(callback)
-
Adds the specified item to the itemList.
Name Type Description callback
Callback Callback
-
putAll(callbackListOrArray)
-
Adds all items in the specified list to this itemList
Name Type Description callbackListOrArray
CallbackList | Array CallbackList
-
inherited removeItem(key)
-
Removes the item from this list for the specified key.
Name Type Description key
string key that should be searched for
-
inherited size(){Number}
-
Returns the number of items that are included.
Returns:
Type Description Number -
withItems(callbackListOrArray){CallbackList}
-
Builder for item list.
Name Type Description callbackListOrArray
CallbackList | Array CallbackList
Returns:
Type Description CallbackList