Commit Graph

221 Commits

Author SHA1 Message Date
Jeremy Ashkenas
d149451fd4 Issue #278. Allow 'extend' to be overrideable+inheritable. 2011-03-21 10:28:22 -04:00
Dmitry Baranovskiy
0cdc525961 Fixed escapeHTML function
to skip not only &***;, but also &#***; and &x***;
2011-03-02 08:12:24 +11:00
Jeremy Ashkenas
7216d99350 merged gh-pages in. 2011-02-28 10:06:56 -05:00
Jeremy Ashkenas
ce059570c2 .get -> .escape in the docs 2011-02-14 15:43:07 -05:00
Jeremy Ashkenas
a5079aba1c merging #179 + refactor, view 'attributes' for this.el 2011-02-07 16:10:08 -05:00
Jeremy Ashkenas
512ff7e728 Merge branch 'master' of https://github.com/hippich/backbone 2011-02-07 16:02:14 -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
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
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
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
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
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
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
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
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