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
Jeremy Ashkenas
289d4e0066
Model::escape() now coerces non-string (non-falsy) values to strings before escaping them.
2011-01-11 12:58:15 -05:00
Samuel Clay
440d1415fb
Fixing a small bug in model inheritance: Class properties need to be inherited (along with the instance properties). See test.
2011-01-05 16:35:05 -05:00
Jeremy Ashkenas
1c308280c8
Updating to latest QUnit, fixing Issue #153 ... overly aggressive urlError.
2010-12-30 12:15:02 -05:00
Jeremy Ashkenas
331cb8bede
Allowing Model#defaults to be a function as well as a hash.
2010-12-20 23:00:51 -05:00
Jeremy Ashkenas
c0c8cb2763
Revising controller test as per dvv's suggestion.
2010-12-20 12:34:52 -05:00
Jeremy Ashkenas
3098321989
Issue #143 , properly escaping regex characters in literal routes.
2010-12-20 12:16:34 -05:00
Sam Stephenson
8c5cd172dd
Update test-zepto.html for Zepto 0.3
2010-12-17 13:00:40 -06:00
Jeremy Ashkenas
12f7ae9137
Merging Issue #149 . View#el can be a string.
2010-12-17 13:56:19 -05:00
Sam Stephenson
71c98381f0
If Backbone.View#el is a string, pass it through $(...).get(0) in _ensureElement
2010-12-17 12:33:12 -06:00
Jeremy Ashkenas
3d8fe92f1e
Issue #78 . Changes the Backbone.sync API to enable passing through of options ... like {data} in fetch()
2010-12-13 10:15:09 -05:00
Sam Stephenson
34d1d0ac93
Multiple views may listen for events on the same element
2010-12-11 23:16:53 -06:00
Jeremy Ashkenas
53ae5b5cdf
Issue #132 ... initial _changed after new with attributes.
2010-12-10 11:58:41 -05:00