Commit Graph

186 Commits

Author SHA1 Message Date
Jeremy Ashkenas
714a5212ec Merge branch 'closure-scope' of https://github.com/sstephenson/backbone 2010-12-17 13:59:23 -05:00
Jeremy Ashkenas
12f7ae9137 Merging Issue #149. View#el can be a string. 2010-12-17 13:56:19 -05:00
Sam Stephenson
2c29387e70 Pass along the current value of this to Backbone's closure wrapper 2010-12-17 12:44:24 -06: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
Joshua Peek
ad2ae8e162 Pass Collection#fetch options along to refresh
Matches the behavior of Model#fetch
2010-12-16 20:13:15 -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
Jeremy Ashkenas
d01b136499 Merging Issue #135. Multiple views per DOM element. 2010-12-13 09:40:54 -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
81cd0cfd83 documenting urlRoot ... making collection.url take precedence over urlRoot, if defined. 2010-12-10 10:46:19 -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
784adc625d Adding Collection#fetch with add: true 2010-12-08 13:14:05 -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
Chris Korhonen
3623916f2b Added append option when fetching a collection. Useful when lazy loading data sets. 2010-12-03 10:39:06 -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
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
3505bde58e Backbone.js 0.3.3 2010-12-01 13:27:10 -05:00
Jeremy Ashkenas
0057523e1b Merge branch 'zepto' of https://github.com/sstephenson/backbone 2010-12-01 12:55:21 -05: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
160f0ba9da first draft of REST-failure 'error' events. 2010-11-29 13:33:07 -05:00
Jeremy Ashkenas
7ae0384120 first draft of Model#escape 2010-11-29 12:58:47 -05:00
Jeremy Ashkenas
356664a735 Backbone.js 0.3.2 2010-11-23 17:22:42 -05:00
Matt
57194beffa Fix recursion error when saving from within a change event. 2010-11-22 20:49:33 -08:00
Jeremy Ashkenas
9e1fcfad58 Revert "about:blank for the IE hashchange iframe support, for IE 6."
This reverts commit 94c77e84f4.
2010-11-22 17:37:41 -05:00
Jeremy Ashkenas
94c77e84f4 about:blank for the IE hashchange iframe support, for IE 6. 2010-11-22 15:35:51 -05:00
Jeremy Ashkenas
a969d670c7 Allowing 'sync' to be overriden on a per-model per-collection basis. 2010-11-22 14:51:18 -05:00
Jeremy Ashkenas
f3e961da08 Issue #80. Adding default attributes to Backbone.Model 2010-11-22 14:22:21 -05:00
Jeremy Ashkenas
d574c9f732 docMode does not exist in IE < 8 2010-11-22 12:47:21 -05:00
Jeremy Ashkenas
70e6cd65dc that should be docMode <= 7 2010-11-22 12:41:04 -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
11dcf246c7 Using a save join() for the default implementation of Model#url 2010-11-16 17:36:53 -05:00
Jeremy Ashkenas
99fbc08224 Adding empty initialize() function for all Backbone classes, to make calling super() a easier to get right. 2010-11-16 17:21:53 -05:00
Jeremy Ashkenas
86c3089379 Issue #77, don't call toJSON unless you need to. 2010-11-15 10:21:01 -05:00
Jeremy Ashkenas
78cf070694 Backbone 0.3.1 2010-11-15 10:14:41 -05:00
Niels Sandholt Busch
2541654889 Remove !current check from checkUrl to allow loading of empty fragments. 2010-11-11 14:09:48 -08:00
Jeremy Ashkenas
d190e9e71e send 'add' and 'remove' events through the model. 2010-11-11 09:54:14 -05:00
Jeremy Ashkenas
b38e9167c7 Adding View#remove. 2010-11-11 09:44:38 -05:00
Jeremy Ashkenas
46d196d1c0 tweaking annotated source. 2010-11-09 13:25:52 -05:00
Jeremy Ashkenas
f22d77ac44 Backbone 0.3.0 2010-11-09 13:20:33 -05:00
Jeremy Ashkenas
1e0986b4e7 save -> saveLocation 2010-11-09 12:38:59 -05:00