mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #2732 from douglascalhoun/patch-1
(2x) new Collection -> new Backbone.Collection
This commit is contained in:
@@ -1604,7 +1604,7 @@ var Library = Backbone.Collection.extend({
|
||||
</pre>
|
||||
|
||||
<p id="Collection-constructor">
|
||||
<b class="header">constructor / initialize</b><code>new Collection([models], [options])</code>
|
||||
<b class="header">constructor / initialize</b><code>new Backbone.Collection([models], [options])</code>
|
||||
<br />
|
||||
When creating a Collection, you may choose to pass in the initial array
|
||||
of <b>models</b>. The collection's <a href="#Collection-comparator">comparator</a>
|
||||
@@ -1798,7 +1798,7 @@ ships.add([
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
var vanHalen = new Collection([eddie, alex, stone, roth]);
|
||||
var vanHalen = new Backbone.Collection([eddie, alex, stone, roth]);
|
||||
|
||||
vanHalen.set([eddie, alex, stone, hagar]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user