Commit Graph

124 Commits

Author SHA1 Message Date
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
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
Jeremy Ashkenas
e8be47f28b merge mkelley's urlBase, renamed to urlRoot. 2010-12-10 10:32:52 -05:00
Jeremy Ashkenas
03aa12a683 Merge branch 'master' of https://github.com/mkelly12/backbone 2010-12-10 10:31:50 -05:00
Jeremy Ashkenas
17602c3927 Make Backbone View's delegateEvents only ever unbind the events that it adds itself. 2010-12-10 09:58:32 -05:00
Jeremy Ashkenas
6ea500b0dd Fixing un-released models from refresh'd collections. Issue #128 2010-12-08 16:38:33 -05:00
Jeremy Ashkenas
0c1bbbcc97 Adding Model#has to Backbone... 2010-12-08 12:23:17 -05:00
Matt Todd
21a3675db9 Implement model.is() for attr test, with docs, tests 2010-12-07 02:45:34 -05:00
Jeremy Ashkenas
bbcf19684c A silent change to a model will now make hasChanged() return true ... Issue #105 2010-12-03 09:54:27 -05:00
Matt
524901083e Add urlBase option to model to allow specifying restful url without using a collection 2010-12-02 14:23:13 -08:00
Jeremy Ashkenas
b085fa0099 Events#trigger ... making it safe to unbind your own event within a trigger() call. 2010-12-02 09:59:26 -05:00
Jeremy Ashkenas
d4dc736a82 adding a bit more of a test for changedattributes. 2010-12-02 09:47:12 -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
c7a7aa5b10 Updating test-zepto.html to latest Underscore 2010-12-01 12:58:59 -05:00
Jeremy Ashkenas
0057523e1b Merge branch 'zepto' of https://github.com/sstephenson/backbone 2010-12-01 12:55:21 -05:00
Jeremy Ashkenas
418b77ffff Upgrading test suite to latest Underscore. 2010-12-01 12:55:05 -05:00
Sam Stephenson
de44d9ec34 Update to Zepto 0.2 2010-12-01 11:02:08 -06:00
Sam Stephenson
e0cb5ee3b6 Zepto support 2010-11-30 16:53:21 -06: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
fa9a4c879d Passing through the options argument to 'change' events. 2010-11-30 15:35:43 -05:00
Jeremy Ashkenas
7ae0384120 first draft of Model#escape 2010-11-29 12:58:47 -05:00