188 Commits

Author SHA1 Message Date
Jeremy Ashkenas
3ba999c8b3 Cleaning up warnings 0.2.0 2010-10-25 11:53:32 -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
869861df9d Adding an Examples section to the homepage. Weak at the moment. More to come. 2010-10-21 09:44:27 -04:00
Jeremy Ashkenas
9daf5d11d8 Moving the example to an 'examples' branch for the time being... 2010-10-21 09:24:11 -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
089fd5c1a2 Adding a test for Issue #33 2010-10-20 14:43:31 -04:00
Jeremy Ashkenas
705aff58a3 Issue #33. Refactor towards View#_ensureElement 2010-10-20 14:41:50 -04:00
Jeremy Ashkenas
c025904432 Further cleaning up the todos example. 2010-10-19 17:59:53 -04:00
Jeremy Ashkenas
6ea50e6a1e moving edit UI out into a template. 2010-10-19 17:20:40 -04:00
Jeremy Ashkenas
8282270d56 Starting to move to templates for the todo example. 2010-10-19 16:42:35 -04:00
Jeremy Ashkenas
2e064bbf56 Adding support links -- Issues + Freenode + Twitter 2010-10-19 16:18:58 -04:00
Jeremy Ashkenas
6252e25786 adding Collection#chain to the documentation. 2010-10-19 16:10:25 -04:00
Jeremy Ashkenas
a895bbb098 fixing chain() test. 2010-10-19 15:50:02 -04:00
Nick Fitzgerald
8d7eff8cd2 Adding chain() to the Collection prototype 2010-10-19 15:48:59 -04:00
Jeremy Ashkenas
c98cfeb4f2 moving 'demos' to 'examples' 2010-10-19 15:03:59 -04:00
Jeremy Ashkenas
9d8b7adf87 removing the embryonic gist demo 2010-10-19 15:03:30 -04:00
Jeremy Ashkenas
b27f57a9a7 Merge branch 'demos' of http://github.com/fitzgen/backbone into demos 2010-10-19 14:57:15 -04:00
Jeremy Ashkenas
14d818677f Merge branch 'master' into demos 2010-10-19 14:57:06 -04:00
Nick Fitzgerald
14db15b458 Adding another demo: Todo Task manager 2010-10-19 11:38:53 -07:00
Jeremy Ashkenas
d2ba331184 Backbone.js 0.1.2 0.1.2 2010-10-19 11:44:07 -04:00
Jeremy Ashkenas
3e3c292c48 documenting the 'error' callback and it's overriding behavior. 2010-10-19 11:26:16 -04:00
Jeremy Ashkenas
2071b932b9 tweak to view docs 2010-10-19 10:51:27 -04:00
Jeremy Ashkenas
f0f7c8d5e3 Adding an error when URLs are left unspecified, and highlighting the importance of the URL property in the docs for persistence to work. 2010-10-19 10:47:40 -04:00
Jeremy Ashkenas
a09bcbca9d error events are now always passed the model as the first argument. You may now also pass an error callback to set() and save(), if the callback is passed, it will be called instead of the 'error' event getting fired. 2010-10-19 10:13:50 -04:00
Jeremy Ashkenas
b854b28d18 additional documentation ... getting ready for 0.1.2 2010-10-19 09:41:50 -04:00
Nick Fitzgerald
349878cdf8 Using JSONP since the Same Origin Policy won't let file:// make an XHR to github.com 2010-10-18 21:36:05 -07:00
Jeremy Ashkenas
5222fe7117 Merge branch 'master' of http://github.com/tmpvar/backbone 2010-10-18 21:52:42 -04:00
Elijah Insua
402f866341 added underscore dependency 2010-10-18 21:46:03 -04:00
Jeremy Ashkenas
c5c795ed98 adding docs for Model#fetch 2010-10-18 21:39:30 -04:00
Jeremy Ashkenas
17d64e0a51 Adding Backbone.Model#fetch 2010-10-18 21:31:27 -04:00
Jeremy Ashkenas
2b539572a0 Passing JavaScriptLint. Added 'rake lint' task. 2010-10-18 21:05:48 -04:00
Nick Fitzgerald
83f4748d8c Adding a missing var declaration inside handleEvents 2010-10-17 18:24:01 -07:00
Jeremy Ashkenas
7721f8481c adding Backbone.emulateHttp for frameworks that don't support HTTP. Issue #11 2010-10-17 10:53:40 -04:00
Jeremy Ashkenas
6899988224 Only send the model on create and update... It's better for destroy not to bother with it. 2010-10-17 10:17:36 -04:00
Jeremy Ashkenas
4311d58ca9 optional values in the template. 2010-10-17 10:01:01 -04:00
Elijah Insua
263245b9cf added package.json 2010-10-17 03:22:25 -04:00
Jeremy Ashkenas
0f3c524a3a beginnings of a different demo. 2010-10-16 17:28:19 -04:00
Jeremy Ashkenas
08687aa183 Merge branch 'master' into demos 2010-10-16 16:09:04 -04:00
Jeremy Ashkenas
5c5b7a8824 Don't send up model data for GET requests by default, for folks who are re-fetching existing collections. 2010-10-16 16:05:49 -04:00
Jeremy Ashkenas
c5db4491c5 Merge branch 'master' into demos 2010-10-15 11:57:00 -04:00
Jeff Larson
ba3775e37c changing the image url back 2010-10-15 10:58:40 -04:00
Jeff Larson
5f0fe91eff adding a missing semicolon and using initialize in the demo 2010-10-15 10:57:22 -04:00
Jeremy Ashkenas
7b10698af6 making the speed test labels fit on the graph 2010-10-15 09:57:31 -04:00
Samuel Clay
d8d40149e0 Type found by pbowyer. 2010-10-15 09:49:56 -04:00