mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-15 01:47:55 -05:00
Merge branch 'document_collection_slice' of git://github.com/lukeasrodgers/backbone
Documentation for Collection#slice
This commit is contained in:
@@ -367,6 +367,7 @@
|
||||
<li>– <a href="#Collection-pop">pop</a></li>
|
||||
<li>– <a href="#Collection-unshift">unshift</a></li>
|
||||
<li>– <a href="#Collection-shift">shift</a></li>
|
||||
<li>– <a href="#Collection-slice">slice</a></li>
|
||||
<li>– <a href="#Collection-length">length</a></li>
|
||||
<li>– <a href="#Collection-comparator">comparator</a></li>
|
||||
<li>– <a href="#Collection-sort">sort</a></li>
|
||||
@@ -1741,6 +1742,13 @@ var book = Library.get(110);
|
||||
<a href="#Collection-remove">remove</a>.
|
||||
</p>
|
||||
|
||||
<p id="Collection-slice">
|
||||
<b class="header">slice</b><code>collection.slice(begin, end)</code>
|
||||
<br />
|
||||
Return a shallow copy of this collection's models, using the same options as
|
||||
native Array#slice.
|
||||
</p>
|
||||
|
||||
<p id="Collection-length">
|
||||
<b class="header">length</b><code>collection.length</code>
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user