Commit Graph

376 Commits

Author SHA1 Message Date
Jeremy Ashkenas
512ff7e728 Merge branch 'master' of https://github.com/hippich/backbone 2011-02-07 16:02:14 -05:00
Jeremy Ashkenas
4489d7f5f1 Merging in a test for Issue #204 2011-02-07 15:02:20 -05:00
Johannes J. Schmidt
aab49ebded encodeURIComponent this.id
in Backbone.Model.prototype.url
2011-02-07 15:00:07 -05:00
Jeremy Ashkenas
c6d2c69d82 ditto 2011-02-07 14:49:56 -05:00
Jeremy Ashkenas
c5160fca23 fixing lingering idAttribute spot -- thanks, jdknezek 2011-02-07 14:37:07 -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
Jeremy Ashkenas
0383ef78c6 Merge branch 'unset_id' of https://github.com/reverie/backbone 2011-02-07 10:31:41 -05:00
Jeremy Ashkenas
7d4d527c8c No periods on errors. 2011-02-07 10:28:39 -05:00
Jeremy Ashkenas
f1e0f6b5c1 Throw an error if Backbone.history.start is called twice. 2011-02-07 10:28:13 -05:00
Jeremy Ashkenas
1944234c74 Merge branch 'master' of https://github.com/jed/backbone 2011-02-07 10:18:05 -05:00
Jeremy Ashkenas
51f9ce6b26 Adding an index.js for npm, Issue #207 2011-02-06 09:27:38 -05:00
Jeremy Ashkenas
4c41ea7c7d Merging issue #216 (+ others) validation on Collection#create. 2011-02-06 08:48:38 -05:00
Kris Jordan
7442f826f1 Forcing Collection.create to run through validation before saving. 2011-02-06 01:13:52 -05:00
Jed Schmidt
e398583d38 keep custom sync methods for a given model/collection scoped to this. 2011-02-03 20:25:12 -08:00
Jeremy Ashkenas
79b33ae78e Merge branch 'gh-pages' 2011-02-01 10:00:45 -05:00
Jeremy Ashkenas
3619844543 Adding CloudEdit as an example. 2011-02-01 10:00:29 -05:00
Jeremy Ashkenas
a2f0468595 merging in fixes for models in multiple collections ... 2011-01-22 11:46:07 -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
65f68309bf merging in tzigla example. 2011-01-19 14:16:21 -05:00
Jeremy Ashkenas
d4a091b02f Adding Tzigla to the examples. 2011-01-19 14:13:35 -05:00
Jeremy Ashkenas
0c033312b3 Pushing the QuietWrite.com example. 2011-01-19 11:13:50 -05:00
Pavel Karoukin
ece686de1a Merge branch 'master' of https://github.com/documentcloud/backbone 2011-01-11 16:36:52 -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
Pavel Karoukin
c3da552f3b Add attributes parameter to Backbone.View. All attributes are being applied to view's this.el during element creation. 2011-01-10 23:06:24 -06: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
Andrew Badr
2fd11a8f78 delete this.id when unsetting the id attribute 2011-01-03 17:19:03 -08:00
Jeremy Ashkenas
c933262555 Adding QuietWrite.com as a Backbone example. 2011-01-03 10:02:04 -05:00
Jeremy Ashkenas
178887e3ee removing broken History-saveLocation link. 2010-12-30 14:10:55 -05:00
Jeremy Ashkenas
4c1bdb46a8 Issue #154. Make options.data possible for creates and updates with the default sync. 2010-12-30 12:28:55 -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
65e434096d Updating Model-save documentation. 2010-12-22 16:44:24 -08:00
Jeremy Ashkenas
a0ace0d9d6 Taking some of dvv's suggestions. 2010-12-21 12:15:56 -05:00
Jeremy Ashkenas
67dd2ee8b3 prefer single quotes. 2010-12-21 12:11:39 -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
e3aa5751ac adding a bit more explanation to Model#save onError 2010-12-20 12:31:58 -05:00
Jeremy Ashkenas
4d6d494f2e adding options to the onError direct callback. 2010-12-20 12:23:52 -05:00
Jeremy Ashkenas
3098321989 Issue #143, properly escaping regex characters in literal routes. 2010-12-20 12:16:34 -05:00
Jeremy Ashkenas
261059356c Making the collection-proxies-model-events a bit more clear 2010-12-17 18:02:45 -05:00
Jeremy Ashkenas
c644866b4f Merge branch 'zepto' of https://github.com/sstephenson/backbone 2010-12-17 14:02:59 -05:00
Sam Stephenson
8c5cd172dd Update test-zepto.html for Zepto 0.3 2010-12-17 13:00:40 -06:00
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