Class: BindingList

Manages a list of items. When an item is added, a Binding is returned that can be used to later remove the item from the list.

BindingList() common/util/binding_list.js, line 6

Creates a new BindingList

Instance Methods

add(obj) → {Binding} common/util/binding_list.js, line 29

Adds an item to the BindingList and returns a Binding.

Argument Type Description
obj Object

The object to add to the list

Returns:

A binding that, when cleared, will remove the item from the list.

callAll() common/util/binding_list.js, line 66

Invokes every member of this list that is a function. Arguments passed to this method are passed on to the functions.

clear() common/util/binding_list.js, line 42

Clears the BindingList

each(fn) common/util/binding_list.js, line 58

Iterates over each item

Argument Type Description
fn function

Function to invoke with each item.

items() common/util/binding_list.js, line 49

Returns the array of items in this BindingList