From 9cfbed78624ea8e006e9b04f1ee4e9ecc3b3ac11 Mon Sep 17 00:00:00 2001
From: Graeme Yeates Backbone.Collection
collection. This can be used to serialize and persist the
collection as a whole. The name of this method is a bit confusing, because
it conforms to
- JavaScript's JSON API.
+ JavaScript's JSON API.
@@ -1883,7 +1883,7 @@Backbone.Collection
Return a shallow copy of this collection's models, using the same options as native - Array#slice. + Array#slice.@@ -1904,7 +1904,7 @@
Backbone.Collection
sortBy (pass a function that takes a single argument), as a - sort + sort (pass a comparator function that expects two arguments), or as a string indicating the attribute to sort by. @@ -4408,7 +4408,7 @@Change Log
A Backbone collection's comparator function may now behave either like a sortBy (pass a function that takes a single argument), - or like a sort + or like a sort (pass a comparator function that expects two arguments). The comparator function is also now bound by default to the collection — so you can refer to this within it.