Collection
Summary
Base collection class.
Constructor
Item Index
Methods
Properties
Events
Methods
_prepareModel
Syntax
_prepareModel
()
private
Summary
Pass modelOptions on to newly created models.
Properties
modelOptions_
Syntax
Summary
Options to pass on to models created by this collection.
Events
add
Syntax
add
Summary
When a model is added to the {aeris.Collection}.
Event Payload:
-
model
aeris.Model -
collection
aeris.Collection
change
Syntax
change
Summary
When any child model's attribute changes
Event Payload:
-
model
aeris.Model
change:[attribute]
Syntax
change:[attribute]
Summary
When any child model's attribute changes, where [attribute] is the name of the attribute.
Event Payload:
-
model
aeris.Model -
value
remove
Syntax
remove
Summary
When a model is removed from the {aeris.Collection}.
Event Payload:
-
model
aeris.Model -
collection
aeris.Collection