Commit Graph

239 Commits

Author SHA1 Message Date
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
3d36c62f67 merging in willmoffat's patch 2010-11-01 18:50:09 -04:00
Will Moffat
315ba7302a Added TodoView.remove()
Called by Todo Model so that the model doesn't have to manipulate the DOM directly.
2010-11-01 15:32:49 -07: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
cd21480e8e one more out-of-date-doc tweak 2010-10-28 01:11:04 -04:00
Jeremy Ashkenas
0749421795 Fixing out-of-date documentation (mrjjwright) 2010-10-28 01:08:58 -04: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
4c5b74c4e6 Saving todo-in-editing on blur. 2010-10-26 14:05:06 -04:00
Jeremy Ashkenas
8e0bd05431 Only one open todo item at a time. 2010-10-26 13:23:42 -04:00
Jeremy Ashkenas
2ac532fd14 Don't bury the lede. 2010-10-26 11:52:28 -04:00
Jeremy Ashkenas
de4b2b35d9 Fixing backbone-localstorage links. 2010-10-26 11:50:39 -04:00
Jeremy Ashkenas
16ad4fd2e8 fixing broken link 2010-10-26 10:16:06 -04:00
Jeremy Ashkenas
cc744682dd Reworking the localStorage plugin. 2010-10-26 10:12:49 -04:00
Jeremy Ashkenas
4109040004 Adding the Todos example to the homepage 2010-10-26 09:33:21 -04:00
Jeremy Ashkenas
16ae9dcc81 Merge branch 'master' into gh-pages 2010-10-25 17:52:07 -04:00
Jeremy Ashkenas
607bd7a3d7 Remove the cross-linking between the sources 2010-10-25 17:52:00 -04:00
Jeremy Ashkenas
581688b9f8 Merge branch 'master' into gh-pages 2010-10-25 17:48:51 -04:00
Jeremy Ashkenas
806a51b33c resolve conflict 2010-10-25 17:39:41 -04:00
Jeremy Ashkenas
0ddef3b6da Building the annotated source. 2010-10-25 17:39:11 -04:00
Jeff Larson
0f1e84f6a9 Ensuring the Todo model has a sane default 2010-10-25 17:36:58 -04:00
Jeremy Ashkenas
22f5a33a0e Fixing line-heights on multi-line todos 2010-10-25 17:01:46 -04:00
Jeremy Ashkenas
6efd643e14 simplifying localStorage interface a bit. 2010-10-25 16:40:09 -04:00
Jeremy Ashkenas
edbdeb1189 Removing unnecessarily bound functions. 2010-10-25 16:08:30 -04:00
Jeremy Ashkenas
d6e57b334c Adding a hover-able destroy icon 2010-10-25 15:48:34 -04:00
Jeremy Ashkenas
62f43bde9d cleaning up generated CSS 2010-10-25 15:44:31 -04:00
Jeremy Ashkenas
3a47769a7e Nice improvements to the rendering ... more templates, less javascript. 2010-10-25 15:33:33 -04:00
Jeremy Ashkenas
092131db0a A little further on. 2010-10-25 14:58:22 -04:00
Jeremy Ashkenas
6b6d3a707c updating CSS style. Fixing ordering. 2010-10-25 14:21:28 -04:00
Jeremy Ashkenas
f6bd4df573 another mootools remmnant. 2010-10-25 12:51:33 -04:00
Jeremy Ashkenas
37b8fb72c4 First semi-working version of the jQuer-ified example. 2010-10-25 12:49:02 -04:00
Jeremy Ashkenas
34355e09f9 Merging master 2010-10-25 12:44:41 -04:00
Jeremy Ashkenas
42cd7d5bcb Merge branch 'master' into gh-pages 2010-10-25 11:58:16 -04:00
Jeremy Ashkenas
f260ac24b6 Revert the attack of the italics. 2010-10-25 11:58:11 -04:00
Jeremy Ashkenas
0c611074f0 resolving merge 2010-10-25 11:55:03 -04:00
Jeremy Ashkenas
3ba999c8b3 Cleaning up warnings 0.2.0 2010-10-25 11:53:32 -04:00