35 Commits

Author SHA1 Message Date
Niall Smart
0853866aab Collection.add should fail if duplicate id/cid exists 2011-06-13 18:11:04 -07:00
Jeremy Ashkenas
e01ad9dd5b Merging in #232. Allow destroy() to be called on non-persisted objects ... just in case. 2011-05-27 11:30:48 -04:00
Jeremy Ashkenas
cf3215139a initial draft of a 0.5.0 branch 2011-05-26 10:54:28 -04:00
Pablo A. Torres Navarrete
0f118ecb6e Add a failing test for Collection.create not running callbacks 2011-04-21 12:07:11 -05:00
Jacek Becela
223c4fb210 Add failing test for #319 2011-04-15 09:32:46 +02:00
Raimonds Simanovskis
5a89ed3272 destroy of non-persisted model should not call sync 2011-02-15 15:17:20 +02:00
Jeremy Ashkenas
c6d2c69d82 ditto 2011-02-07 14:49:56 -05:00
Kris Jordan
7442f826f1 Forcing Collection.create to run through validation before saving. 2011-02-06 01:13:52 -05:00
Joshua Peek
14000a8bb9 Improve multiple collection support
Preserve original model collection when adding/removing from another collection
Destroying a model removes it from all collections
2011-01-22 10:15:51 -06:00
Jeremy Ashkenas
6ea500b0dd Fixing un-released models from refresh'd collections. Issue #128 2010-12-08 16:38:33 -05:00
Jeremy Ashkenas
6a0ac93086 Fixing Issue #109 -- ignore 'add' and 'remove' events that originate from models shared with other collections. 2010-12-02 09:31:55 -05:00
Jeremy Ashkenas
6e4046df02 All Backbone events now pass through their options as the ffinal argument. 2010-11-30 16:04:55 -05:00
Jeremy Ashkenas
f63c99511e Merge branch 'master' of github.com:documentcloud/backbone 2010-11-18 09:43:01 -05:00
Jeremy Ashkenas
327ba8c54d Fixing id=0 2010-11-18 09:42:54 -05:00
Samuel Clay
52c460bc12 Allowing collections to remove models by either Cid or Id (prefering cid). 2010-11-17 14:50:39 -05:00
Jeremy Ashkenas
6e7894d8fa Streamlined event delegation from models through collections. Added documentation for 0.2.0 enhancements. 2010-10-25 11:23:04 -04:00
Jeremy Ashkenas
f3a8dcd16b Merging in Collection#toJSON 2010-10-20 16:01:56 -04:00
Jeremy Ashkenas
a895bbb098 fixing chain() test. 2010-10-19 15:50:02 -04:00
Nick Fitzgerald
8d7eff8cd2 Adding chain() to the Collection prototype 2010-10-19 15:48:59 -04:00
Jeremy Ashkenas
e7ce57cc1d Adding the beginnings of a speed suite to the Test page. 2010-10-14 14:46:53 -04:00
Jeremy Ashkenas
831090329f Issue #8 -- a number of improvements to the documentation. 2010-10-14 10:29:18 -04:00
Jeremy Ashkenas
091e266077 Adding basic tests for initialize. 2010-10-13 17:33:20 -04:00
Jeremy Ashkenas
f09e791402 removing toString 2010-10-13 11:04:44 -04:00
Jeremy Ashkenas
8e7405e17a updating rest tests. 2010-10-12 16:01:14 -04:00
Jeremy Ashkenas
11c6ebb7fc add, remove, get, getbycid, at 2010-10-12 13:52:59 -04:00
Jeremy Ashkenas
cbbba479ea ... 2010-10-12 09:59:15 -04:00
Jeremy Ashkenas
d343aa5fec testing a handful of the underscore methods on collections 2010-10-06 13:52:25 -04:00
Jeremy Ashkenas
655ab7fa1c finished initial round of tests for collection 2010-10-06 13:45:05 -04:00
Jeremy Ashkenas
b1277b9258 defaulting Backbone.Collection#model to be Backbone.Model 2010-10-06 13:41:37 -04:00
Jeremy Ashkenas
80acf9484d more tests, returning 'this', when performing side effects on collections 2010-10-06 13:36:28 -04:00
Jeremy Ashkenas
463ce3e62d Making zero numeric ids more possible 2010-10-06 13:29:36 -04:00
Jeremy Ashkenas
6009b8d1ab more tests for collection, 0 is a valid id. 2010-10-06 13:18:32 -04:00
Jeremy Ashkenas
71969d367b linting the remainder of the tests. 2010-10-06 11:35:14 -04:00
Joe Germuska
573d491f8d fix bug in 'add' and 'refresh' 2010-10-02 17:16:17 -05:00
Joe Germuska
d66f2ed161 some more tests 2010-10-02 15:58:26 -05:00