144 Commits

Author SHA1 Message Date
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
Jeremy Ashkenas
b638e31cd7 light refactor for History#getFragment 2010-11-09 11:14:48 -05:00
Jeremy Ashkenas
9ebe66b4a2 slight refactor to old-IE detection. 2010-11-09 11:00:50 -05:00
Jeremy Ashkenas
4ff388ab95 removing extraneous hasState flag. 2010-11-09 10:29:45 -05:00
Jeremy Ashkenas
f636b3a394 Making the fragment a little more consistent and pushState-ready. No octothorpe. 2010-11-09 10:28:20 -05:00
Jeremy Ashkenas
151417e7bc separating out emulateHTTP from emulateJSON, with tests. 2010-11-08 15:42:09 -05:00
Jeremy Ashkenas
be37cf0178 passing silent: true now suppresses validations. Issue #52 2010-11-08 15:21:54 -05:00
Jeremy Ashkenas
cbc5055b3a lowering the default hashchange time to 50. 2010-11-08 15:06:52 -05:00
Jeremy Ashkenas
3373fa0270 Adding the IE8-in-IE7-mode hack. 2010-11-08 15:05:38 -05:00
Jeremy Ashkenas
6443b73069 making the iframe tabindex -1 2010-11-08 15:01:57 -05:00
Jeremy Ashkenas
61397b9635 commenting Backbone.History 2010-11-08 14:33:22 -05:00
Jeremy Ashkenas
3fc9ef1e6b commentng out Backbone.Controller 2010-11-08 14:22:22 -05:00
Jeremy Ashkenas
37cd99124d first draft of splatted params. 2010-11-08 13:45:08 -05:00
Jeremy Ashkenas
bdee3a2512 first draft of Backbone.Controller and Backbone.History 2010-11-08 12:45:54 -05:00
Jeremy Ashkenas
e1e6625a45 that's .js 2010-11-07 18:57:18 -05:00
Jeremy Ashkenas
09c7870fb2 Adding version number + header to backbone-min.js 2010-11-07 18:52:26 -05:00
Jeremy Ashkenas
ee0cf27cdc fixing comments typo. 2010-11-06 12:44:51 -04:00
Jeremy Ashkenas
501b9ab36c processData should be true if emulateHttp is true 2010-11-06 09:52:51 -04:00
Jeremy Ashkenas
9a74dbc9c3 Make protoProps optional, when inheriting. 2010-11-06 09:48:56 -04:00
Jeremy Ashkenas
65c52763d3 fixing more model.collection in initialize. 2010-11-04 23:52:21 -04:00
Jeremy Ashkenas
ece51d2383 Allowing a collection to be passed into a model via the options. 2010-11-04 23:45:48 -04:00
Raimonds Simanovskis
771b87f17c added options argument to Backbone.Model initialize function 2010-11-03 18:28:40 +02:00
Jeremy Ashkenas
6181445f3e merging dxgriffiths' annotations to 'inherits'. 2010-11-03 12:11:12 -04:00
dxgriffiths
b04854ef1f Cleaned up the inherits function and added some extra comments to make it clear what is happening. 2010-11-03 03:22:25 -07:00
Jeremy Ashkenas
d651d82e92 don't send any data up, if you're not sending any data up ... fixes destroy. 2010-11-02 13:48:10 -04:00
Jeremy Ashkenas
2d4ebd0271 Merging Issue #46. Use full JSON requests, falling back to encoded forms with emulateHttp. 2010-11-01 13:54:07 -04:00
Jeremy Ashkenas
77b15e5916 Merge branch 'master' of http://github.com/mrjjwright/backbone 2010-11-01 13:25:37 -04:00
Jeremy Ashkenas
b4d573c943 Merging in Chris Lloyd's Model#clear. Making validations run, if defined, on Model#clear and Model#unset 2010-11-01 11:43:05 -04:00
Jeremy Ashkenas
47ba5c6552 Merge branch 'model-clear' of http://github.com/chrislloyd/backbone 2010-11-01 10:48:35 -04:00
Jeremy Ashkenas
f0ecfcd279 Issue #44 -- Model#set, empty string vs null. 2010-11-01 10:26:44 -04:00
Chris Lloyd
d84ef25c6b Added clear method to Model. Removes all attributes like you would expect. 2010-10-31 22:44:19 +01:00
John Wright
6c972695db Default behavior for Backbone.sync is now to send everything as application/json. Emulating http and sending data as form url-encoded can be turned on with Backbone.emulateHttp 2010-10-29 10:47:59 -06:00
John Wright
302c0d5cee Added Backbone.emulateJSON to enable the current behavior of syncing and made sending the body as application/json without a wrapping model param, the default 2010-10-28 20:21:59 -06:00
Jeremy Ashkenas
1d57168c8f Adding one line to Backbone.js to provide seamless CoffeeScript integration (inheritance from Backbone.Model, View, Collection) + tests 2010-10-27 09:17:38 -04:00
Jeremy Ashkenas
9d28018960 Backbone 0.2.0 2010-10-25 11:46:53 -04: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
a7195a975d Issue #28 -- handleEvents -> delegateEvents, which is now called in the constructor. 2010-10-25 10:51:23 -04:00
Jeremy Ashkenas
a9de05eb44 Switching from assumed 'model' and 'models' namespacing to an overridable 'parse' method on models and collections. 2010-10-25 10:28:10 -04:00
Jeremy Ashkenas
f3a8dcd16b Merging in Collection#toJSON 2010-10-20 16:01:56 -04:00
Jeremy Ashkenas
c957ec0888 Merge branch 'master' of http://github.com/bunchesofdonald/backbone 2010-10-20 15:53:23 -04:00
Chris Pickett
89e7e6767f Added Backbone.Collection.toJSON. Returns array of model's toJSON 2010-10-20 15:28:47 -04:00
Jeremy Ashkenas
931338ea14 Fixing Collection#create success callback, passing the model parameter through. 2010-10-20 14:57:40 -04:00
Jeremy Ashkenas
705aff58a3 Issue #33. Refactor towards View#_ensureElement 2010-10-20 14:41:50 -04:00