Commit Graph

155 Commits

Author SHA1 Message Date
Chris Moore
3145b4db22 isNew should use id, not idAttribute 2011-07-25 17:48:09 -04:00
Jeremy Ashkenas
6d07d2f0e2 multiple models with the same ID should be allowed in a collection. 2011-07-05 16:40:23 -04:00
Jeremy Ashkenas
da6d0b90ca resolving merge conflict, removing old test. 2011-07-05 09:42:15 -04:00
Jeremy Ashkenas
fcbedad8cd Addinga a test case for #459 2011-07-05 09:00:12 -04:00
Jeremy Ashkenas
d2082a54cf issue #451 + test. 2011-07-01 18:54:49 -04:00
Jeremy Ashkenas
af674c98c5 almost to 0.5.0... 2011-07-01 12:36:11 -04:00
Jeremy Ashkenas
b5112b40a3 Merge pull request #414 from niallsmart/master
Fix for issue #413 - collection.add should fail for duplicates
2011-06-29 19:15:08 -07:00
Jeremy Ashkenas
ba1d9a1efd removing complex router text (unfixable) 2011-06-29 21:20:33 -04:00
Jeremy Ashkenas
4138b58195 Merge pull request #430 from reconbot/master
Add complex query string router test
2011-06-29 18:17:22 -07:00
Gavin Huang
4e9037b018 Model is no longer considered to be new if its id is a falsey value 2011-06-23 16:09:41 +08:00
Gavin Huang
573c347553 Fix unit test for model.isNew() 2011-06-23 16:08:16 +08:00
Francis Gulotta
621c9edfc6 Test complex query strings. Fails in some browsers. 2011-06-17 15:37:12 -04:00
Niall Smart
0853866aab Collection.add should fail if duplicate id/cid exists 2011-06-13 18:11:04 -07:00
Matt Smith
d3a0b64603 remove model_with helper from test 2011-05-31 09:31:04 -04: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
9accf97e9e Issue #246 -- never fire nested change events for the same model. The top-level one will do. 2011-05-27 10:29:14 -04:00
Jeremy Ashkenas
ed636326dd Issue #250 -- duplicated QUnit. 2011-05-27 09:58:18 -04:00
Jeremy Ashkenas
300c7f0e9c fix the zepto test suite. 2011-05-26 11:04:56 -04:00
Jeremy Ashkenas
cf3215139a initial draft of a 0.5.0 branch 2011-05-26 10:54:28 -04:00
Jeremy Ashkenas
e8476afef0 Issue #366, support for namespaced events. 2011-05-24 13:07:11 -04:00
Jeremy Ashkenas
a5d01f91fe fixing tests for IE / Webkit ... regex, not string match. 2011-05-23 09:50:26 -04:00
Samuel Clay
ee215be027 Adding test for hashbang URLs. For pull request #312. 2011-04-22 12:16:17 -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
Jeremy Ashkenas
222d673dcc Issue #289. Enable the use of jQuery.Deferred by returning Deferred objects from save() and fetch() calls. 2011-04-18 17:08:34 -04:00
Jeremy Ashkenas
37ddad508d Issue #309, more sophisticated event handling, for unbinding events in the midst of them firing. 2011-04-18 16:39:26 -04:00
Jeremy Ashkenas
76b3ed1fb4 Merge branch 'fix_custom_events_on_models_inside_collections' of https://github.com/autohaus24/backbone 2011-04-18 10:42:52 -04:00
Jeremy Ashkenas
12661ff159 Merge branch 'master' of github.com:documentcloud/backbone 2011-04-18 09:19:15 -04:00
Jeremy Ashkenas
7b494c1e6d Upgrading to Underscore 1.1.6 for test deps. 2011-04-18 09:19:04 -04:00
Jacek Becela
223c4fb210 Add failing test for #319 2011-04-15 09:32:46 +02:00
Samuel Clay
67d61fc355 Adding Backbone.noConflict() and keeping track of the original root.Backbone. 2011-03-23 14:08:37 -04:00
Jeremy Ashkenas
c9a634982a Upgrade tests to Zepto 0.5 2011-03-21 10:32:56 -04:00
Jeremy Ashkenas
d97d8bf336 Upgrading Backbone.js tests to Underscore 1.1.5 2011-03-20 20:26:17 -04:00
Matt Smith
12e9d95b45 add helper method to cleanup isNew test 2011-03-03 17:40:26 -05:00
Matt Smith
4595b48ffb refine the isNew test 2011-03-03 17:35:09 -05:00
Matt Smith
8971361bdc split out test for positive and negative ids 2011-03-03 17:33:19 -05:00
Matt Smith
5ebd949c7f use hash literal directly
This will make it harder to forget to instantiate the model.
2011-03-03 17:20:38 -05:00
Matt Smith
13acb8a822 fix documentation and tests for negative ids
The documentation said that a model was considered new if it had a negative id.
The test had the right message, but failed to instantiate the model the for the second assertion, and the assertion was inverted.
2011-03-03 17:06:16 -05:00
Raimonds Simanovskis
5a89ed3272 destroy of non-persisted model should not call sync 2011-02-15 15:17:20 +02:00
Jeremy Ashkenas
a5079aba1c merging #179 + refactor, view 'attributes' for this.el 2011-02-07 16:10:08 -05:00
Jeremy Ashkenas
4489d7f5f1 Merging in a test for Issue #204 2011-02-07 15:02:20 -05:00
Jeremy Ashkenas
c6d2c69d82 ditto 2011-02-07 14:49:56 -05:00
Jeremy Ashkenas
b86d3f6afc Issue #209 ... unsetting a missing attribute should not fire a change event. 2011-02-07 14:16:31 -05:00
Jeremy Ashkenas
1a9404cfe8 Initial support for models with non-default id attribute names (MongoDB, CouchDB). Various tickets. 2011-02-07 13:59:52 -05:00
Jeremy Ashkenas
d04bf67b21 Fixing test-zepto.html HTML. 2011-02-07 11:51:28 -05:00
Jeremy Ashkenas
164ad725c7 Upgrading Backbone.js (test) dependencies to latest jQuery, Zepto, and Underscore. 2011-02-07 11:50:22 -05:00
Jeremy Ashkenas
ac8c3dd9db Changing route order behavior. Issue #189. Declarative route maps are the same, procedural route() calls can now override previously-defined routes. 2011-02-07 11:10:56 -05:00
Jeremy Ashkenas
ec6842009c Merging in #167, unsetting 'id' 2011-02-07 10:34:42 -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
39cabb8ac8 Merge branch 'master' of github.com:documentcloud/backbone 2011-01-11 12:58:23 -05:00