Merge pull request #2732 from douglascalhoun/patch-1

(2x) new Collection -> new Backbone.Collection
This commit is contained in:
Casey Foster
2013-08-25 10:09:25 -07:00

View File

@@ -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]);