Spine.Collection({}) | returns a child constructor |
Empty Methods | |
$initialize | makes the init when the object is created |
$listen | listens for model events |
$parse | parses the downloaded array of objects or bypass |
Public Methods | |
$get | returns a model from its cid or id |
$each | returns the models one by one |
$next | returns the next model from the given model |
$previous | returns the previous model from the given model |
$length | returns the number of models in the collection |
$empty | deletes a collection (not from server) |
$add | adds one or more objects to the collection |
$remove | removes model(s) from the collection |
$fetch | retrieves new models from the server and appends them to the collection |
$save | sends a collection subset (changed prop) to the server |
$delete | deletes a set of models from the server and collection |
$urify | extends an Uri with the query parameters |
Public Events Methods | |
$on | listens for an event |
$one | listens for an event once |
$off | stops Listening the passed-in event |
$fire | fires an event |
$trigger | fires an event (alias) |