mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
s/updated/update/ event
This commit is contained in:
@@ -1893,7 +1893,7 @@ var alphabetical = books.sortBy(function(book) {
|
||||
<b class="header">add</b><code>collection.add(models, [options])</code>
|
||||
<br />
|
||||
Add a model (or an array of models) to the collection, firing an <tt>"add"</tt>
|
||||
event for each model, and an <tt>"updated"</tt> event afterwards. If a <a href="#Collection-model">model</a> property is defined, you may also pass
|
||||
event for each model, and an <tt>"update"</tt> event afterwards. If a <a href="#Collection-model">model</a> property is defined, you may also pass
|
||||
raw attributes objects, and have them be vivified as instances of the model.
|
||||
Returns the added (or preexisting, if duplicate) models.
|
||||
Pass <tt>{at: index}</tt> to splice the model into the collection at the
|
||||
|
||||
Reference in New Issue
Block a user