Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: jashkenas/backbone
base: 0.3.3
head fork: jashkenas/backbone
compare: 0.5.0
Commits on Dec 02, 2010
Jeremy Ashkenas Fixing Issue #109 -- ignore 'add' and 'remove' events that originate …
…from models shared with other collections.
Jeremy Ashkenas adding a bit more of a test for changedattributes. d4dc736
Jeremy Ashkenas Events#trigger ... making it safe to unbind your own event within a t…
…rigger() call.
Matt Kelly mkelly12 Add urlBase option to model to allow specifying restful url without u…
…sing a collection
Commits on Dec 03, 2010
Jeremy Ashkenas A silent change to a model will now make hasChanged() return true ...…
… Issue #105
Chris Korhonen ckorhonen Added append option when fetching a collection. Useful when lazy load…
…ing data sets.
Commits on Dec 06, 2010
Jeremy Ashkenas Adding an FAQ section to the backbone docs. 3246463
Jeremy Ashkenas adding an FAQ section. f194f2d
Commits on Dec 07, 2010
Matt Todd mtodd Implement for attr test, with docs, tests 21a3675
Commits on Dec 08, 2010
Jeremy Ashkenas Adding FAQ section for bootstrapping 9f842bd
Jeremy Ashkenas Adding FAQ section for bootstrapping 06a1506
Jeremy Ashkenas Merge branch 'Model-is' of b73fc46
Jeremy Ashkenas Adding Model#has to Backbone... 0c1bbbc
Jeremy Ashkenas Adding Collection#fetch with add: true 784adc6
Jeremy Ashkenas Fixing un-released models from refresh'd collections. Issue #128 6ea500b
Commits on Dec 10, 2010
Jeremy Ashkenas Make Backbone View's delegateEvents only ever unbind the events that …
…it adds itself.
Jeremy Ashkenas Merge branch 'master' of 03aa12a
Jeremy Ashkenas merge mkelley's urlBase, renamed to urlRoot. e8be47f
Jeremy Ashkenas documenting urlRoot ... making collection.url take precedence over ur…
…lRoot, if defined.
Jeremy Ashkenas Issue #132 ... initial _changed after new with attributes. 53ae5b5
Commits on Dec 12, 2010
Sam Stephenson sstephenson Multiple views may listen for events on the same element 34d1d0a
Commits on Dec 13, 2010
Jeremy Ashkenas Issue #134. json2.js source link. 5886fe4
Jeremy Ashkenas Merge branch 'multiple-views-per-element' of… aec3f47
Jeremy Ashkenas Merging Issue #135. Multiple views per DOM element. d01b136
Jeremy Ashkenas Issue #78. Changes the Backbone.sync API to enable passing through of…
… options ... like {data} in fetch()
Commits on Dec 17, 2010
Joshua Peek josh Pass Collection#fetch options along to refresh
Matches the behavior of Model#fetch
Jeremy Ashkenas Expanding View#el documentation. 43176d9
Sam Stephenson sstephenson If Backbone.View#el is a string, pass it through $(...).get(0) in _en…
Sam Stephenson sstephenson Pass along the current value of `this` to Backbone's closure wrapper 2c29387
Jeremy Ashkenas Merging Issue #149. View#el can be a string. 12f7ae9
Jeremy Ashkenas Merge branch 'closure-scope' of 714a521
Sam Stephenson sstephenson Update test-zepto.html for Zepto 0.3 8c5cd17
Jeremy Ashkenas Merge branch 'zepto' of c644866
Jeremy Ashkenas Making the collection-proxies-model-events a bit more clear 2610593
Commits on Dec 20, 2010
Jeremy Ashkenas Issue #143, properly escaping regex characters in literal routes. 3098321
Jeremy Ashkenas adding options to the onError direct callback. 4d6d494
Jeremy Ashkenas adding a bit more explanation to Model#save onError e3aa575
Jeremy Ashkenas Revising controller test as per dvv's suggestion. c0c8cb2
Commits on Dec 21, 2010
Jeremy Ashkenas Allowing Model#defaults to be a function as well as a hash. 331cb8b
Jeremy Ashkenas prefer single quotes. 67dd2ee
Jeremy Ashkenas Taking some of dvv's suggestions. a0ace0d
Commits on Dec 23, 2010
Jeremy Ashkenas Updating Model-save documentation. 65e4340
Commits on Dec 30, 2010
Jeremy Ashkenas Updating to latest QUnit, fixing Issue #153 ... overly aggressive url…
Jeremy Ashkenas Issue #154. Make possible for creates and updates with t…
…he default sync.
Jeremy Ashkenas removing broken History-saveLocation link. 178887e
Commits on Jan 03, 2011
Jeremy Ashkenas Adding as a Backbone example. c933262
Commits on Jan 04, 2011
Andrew Badr delete when unsetting the id attribute 2fd11a8
Commits on Jan 05, 2011
Samuel Clay samuelclay Fixing a small bug in model inheritance: Class properties need to be …
…inherited (along with the instance properties). See test.
Commits on Jan 11, 2011
Pavel Karoukin hippich Add attributes parameter to Backbone.View. All attributes are being a…
…pplied to view's this.el during element creation.
Jeremy Ashkenas Model::escape() now coerces non-string (non-falsy) values to strings …
…before escaping them.
Jeremy Ashkenas Merge branch 'master' of 39cabb8
Pavel Karoukin hippich Merge branch 'master' of ece686d
Commits on Jan 19, 2011
Jeremy Ashkenas Pushing the example. 0c03331
Jeremy Ashkenas Adding Tzigla to the examples. d4a091b
Jeremy Ashkenas merging in tzigla example. 65f6830
Commits on Jan 22, 2011
Joshua Peek josh Improve multiple collection support
Preserve original model collection when adding/removing from another collection
Destroying a model removes it from all collections
Jeremy Ashkenas merging in fixes for models in multiple collections ... a2f0468
Commits on Feb 01, 2011
Jeremy Ashkenas Adding CloudEdit as an example. 3619844
Jeremy Ashkenas Merge branch 'gh-pages' 79b33ae
Commits on Feb 04, 2011
Jed Schmidt jed keep custom `sync` methods for a given model/collection scoped to `th…
Commits on Feb 06, 2011
Kris Jordan KrisJordan Forcing Collection.create to run through validation before saving. 7442f82
Jeremy Ashkenas Merging issue #216 (+ others) validation on Collection#create. 4c41ea7
Jeremy Ashkenas Adding an index.js for npm, Issue #207 51f9ce6
Commits on Feb 07, 2011
Jeremy Ashkenas Merge branch 'master' of 1944234
Jeremy Ashkenas Throw an error if Backbone.history.start is called twice. f1e0f6b
Jeremy Ashkenas No periods on errors. 7d4d527
Jeremy Ashkenas Merge branch 'unset_id' of 0383ef7
Jeremy Ashkenas Merging in #167, unsetting 'id' ec68420
Jeremy Ashkenas Changing route order behavior. Issue #189. Declarative route maps are…
… the same, procedural route() calls can now override previously-defined routes.
Jeremy Ashkenas Upgrading Backbone.js (test) dependencies to latest jQuery, Zepto, an…
…d Underscore.
Jeremy Ashkenas Fixing test-zepto.html HTML. d04bf67
Jeremy Ashkenas Initial support for models with non-default id attribute names (Mongo…
…DB, CouchDB). Various tickets.
Jeremy Ashkenas Issue #209 ... unsetting a missing attribute should not fire a change…
… event.
Jeremy Ashkenas fixing lingering idAttribute spot -- thanks, jdknezek c5160fc
Jeremy Ashkenas ditto c6d2c69
Johannes Jörg Schmidt jo encodeURIComponent
in Backbone.Model.prototype.url
Jeremy Ashkenas Merging in a test for Issue #204 4489d7f
Jeremy Ashkenas Merge branch 'master' of 512ff7e
Jeremy Ashkenas merging #179 + refactor, view 'attributes' for this.el a5079ab
Commits on Feb 14, 2011
Jeremy Ashkenas .get -> .escape in the docs ce05957
Jeremy Ashkenas linking to the documentcloud workspace 02c40e5
Jeremy Ashkenas adding basecamp mobile, instagreat, and tilemill 0ca0481
Jeremy Ashkenas Issue #223 ... fixing json2.js link. f4a394b
Jeremy Ashkenas Issue #224 ... underlining links, updating docs. 6c968b6
Commits on Feb 15, 2011
Raimonds Simanovskis rsim destroy of non-persisted model should not call sync 5a89ed3
Commits on Feb 28, 2011
Jeremy Ashkenas Adding mql's 52953c1
Jeremy Ashkenas merged gh-pages in. 7216d99
Commits on Mar 01, 2011
Dmitry Baranovskiy DmitryBaranovskiy Fixed escapeHTML function
to skip not only &***;, but also &#***; and &x***;
Commits on Mar 09, 2011
Jason Davies jasondavies Only set request content type for create/update 83250a5
Jason Davies jasondavies Fix typo ee2ec92
Commits on Mar 10, 2011
Jeremy Ashkenas Adding Mobile SoundCloud as an example. e2a5c18
Commits on Mar 17, 2011
Jimmy Do Fix incorrect prototype.constructor comment
prototype.constructor does not affect instanceof
Commits on Mar 21, 2011
Jeremy Ashkenas Upgrading Backbone.js tests to Underscore 1.1.5 d97d8bf
Jeremy Ashkenas Issue #278. Allow 'extend' to be overrideable+inheritable. d149451
Jeremy Ashkenas Upgrade tests to Zepto 0.5 c9a6349
Jeremy Ashkenas Merge branch 'fix-comment' of da52ae1
Commits on Mar 22, 2011
Paul Uithol PaulUithol Make it possible to take advantage of jQuery.Deferred with Backbone, …
…without breaking compatibility by changing return values.

Implemented by adding a "promise" attribute to Backbone.Model and Backbone.Collection, set by Backbone.Model's "fetch", "save", "destroy" and Backbone.Collectin's "fetch" and "create".
Paul Uithol PaulUithol A somewhat smarter approach (more DRY). 8f80fb1
Samuel Clay samuelclay Adding MetaLab's Flow to the examples. fd35fcb
Paul Uithol PaulUithol Even simpler; merely expose the (jq)XHR object, enabling the use of j…
Commits on Mar 23, 2011
Samuel Clay samuelclay Adding Backbone.noConflict() and keeping track of the original root.B…
Samuel Clay samuelclay Adding Flow to sidebar under Examples. 35ba4a9
Samuel Clay samuelclay Merge branch 'gh-pages'
Samuel Clay samuelclay Documenting the new Backbone.noConflict() method. f4cfbd6
Commits on Apr 11, 2011
Brandon Leonardo shiftb change hashStrip regex to strip bang as well, so hash-bang urls will …
…work transparently
Brandon Leonardo shiftb rebuild to include previous change 914ff9d
Commits on Apr 15, 2011
Jacek Becela ncr Add failing test for #319 223c4fb
Jacek Becela ncr Check for model before accessing its properties, fixes #319 1499d75
Vladimir Dronnikov dvv ender.js support 94edc63
Commits on Apr 18, 2011
Jeremy Ashkenas Upgrading to Underscore 1.1.6 for test deps. 7b494c1
Jeremy Ashkenas Merge branch 'master' of 12661ff
Jeremy Ashkenas Merge branch 'master' of 5f3135f
Jeremy Ashkenas merging in Ender.js support 4070364
Jeremy Ashkenas Merge branch 'fix_custom_events_on_models_inside_collections' of http… 76b3ed1
Jeremy Ashkenas removing backbone-min from master ... it'll only live on the gh-pages…
… branch now.
Jeremy Ashkenas clarifying that jQuery or Zepto is required for History support (for …
…the moment)
Jeremy Ashkenas Issue #309, more sophisticated event handling, for unbinding events i…
…n the midst of them firing.
Jeremy Ashkenas Issue #289. Enable the use of jQuery.Deferred by returning Deferred o…
…bjects from save() and fetch() calls.
Commits on Apr 19, 2011
Paul Uithol PaulUithol Merge remote branch 'remotes/upstream/master'
Commits on Apr 21, 2011
Pablo Torres ptn Pass the error and success callbacks when creating the model to add t…
…o a Collection
Pablo Torres ptn Add a failing test for Collection.create not running callbacks 0f118ec
Commits on Apr 22, 2011
Samuel Clay samuelclay Removing Ender.js support for the time being, as it needs to fix its …
…AJAX methods to corrospond with jQuery/Zepto success/error signatures.
Samuel Clay samuelclay Adding XHR object to Model.parse and Collection.parse method signatur…
…es. jQuery and Zepto use the same callback signature: response, status, xhr.
Samuel Clay samuelclay _ to status in Model.parse. No need to clobber Underscore.js just to …
…ignore a parameter.
Samuel Clay samuelclay Adding XHR object to Collection.create (which comes from 577758a
Samuel Clay samuelclay Merge 0cc8cb0
Samuel Clay samuelclay Adding test for hashbang URLs. For pull request #312. ee215be
Commits on Apr 25, 2011
Samuel Clay samuelclay Adding in a note about passing in an object literal or a model to Col…
…lection.create. Thanks to MattJ for the recommendation.
Samuel Clay samuelclay Adding in a note about Backbone.history.start() returning a boolean f…
…or whether or not a match has been found in the current URL fragment. Thanks to XiXora for the recommendation.
Samuel Clay samuelclay Adding a note about using Collection.create on a model that has been …
…saved server-side.
Jeremy Ashkenas clarifying wording 58708b3
Commits on Apr 26, 2011
Paul Uithol PaulUithol Merge branch 'master' of git:// 9b40c7a
Paul Uithol PaulUithol Factor out model preparation to a separate function in Backbone.Colle…
…ction, so 'create' and 'add' behave the same.
Commits on Apr 27, 2011
Damien Holzapfel damienholzapfel Reference calls variable in list variable definition in Backbone.Even…
Commits on Apr 28, 2011
Jeremy Ashkenas Adding CloudApp to the list of examples. c9bf20e
Jeremy Ashkenas resolving merge db68321
Jeremy Ashkenas Adding the bittorrent example app. bbce120
Jeremy Ashkenas Merge branch 'gh-pages' 7489bf0
Jeremy Ashkenas expanding the FAQ for MVC with a direct Rails comparison. bbf28b8
Jeremy Ashkenas Merge branch 'gh-pages' d8edb5d
Commits on May 01, 2011
Jeremy Ashkenas Merge pull request #267 from jasondavies/master.
Don't set content type header for GET requests
Commits on May 05, 2011
Corban Brook corbanbrook Pass options to the coll.add call in Collection::create so that it ca…
…n work silently.
Commits on May 08, 2011
Francis Gulotta reconbot Following recommendations from the OWASP 82c288c
Commits on May 23, 2011
Jeremy Ashkenas fixing tests for IE / Webkit ... regex, not string match. a5d01f9
Jeremy Ashkenas Merge branch 'master' of a251810
Jeremy Ashkenas Issue #228 ... IE7 hash should look correct after initial load. 489ebb7
Commits on May 24, 2011
Jeremy Ashkenas Issue #366, support for namespaced events. e8476af
Commits on May 26, 2011
Jeremy Ashkenas initial draft of a 0.5.0 branch cf32151
Jeremy Ashkenas fix the zepto test suite. 300c7f0
Jeremy Ashkenas remove an extraneous this.options 636e7b0
Jeremy Ashkenas Adding Backbone.Router.setLocation, alongside saveLocation, to both s…
…ave and route at once.
Jeremy Ashkenas Backbone.Router formatting, tweaks. e9b38de
Jeremy Ashkenas fixing IE support for 0.5.0 f742bbe
Jeremy Ashkenas normalizing for the Safari window.location bug. e56346c
Jeremy Ashkenas Controller -> Router in the docs, and adding docco for setLocation(). 46fbd4c
Jeremy Ashkenas mention that Backbone require's jQuery > 1.4.2, if using jQuery. Issue 9a1deb6
Jeremy Ashkenas Issue #365. delete options.comparator. 2b1eae4
Jeremy Ashkenas documenting that fetch options can also be jquery options. 9503627
Jeremy Ashkenas Issue #359 -- removing duplicate model.escape documentation. 78212c2
Jeremy Ashkenas fixing refresh -> reset documentation. 2f04473
Jeremy Ashkenas add a warning about pass by reference. Issue #356 d8d94f1
Jeremy Ashkenas document collection.reset() with no args. 5f7b01d
Jeremy Ashkenas Merge branch 'master' of into 0.5.0 082cb28
Jeremy Ashkenas Merge branch 'master' of into…
… 0.5.0
Jeremy Ashkenas Merge branch 'patch-1' of
…into 0.5.0
Paul Uithol PaulUithol Merge remote branch 'remotes/upstream/master' 6b229ff
Paul Uithol PaulUithol Updated to apply on the 0.5.0 branch d7e3d5b
Paul Uithol PaulUithol Merge branch '0.5.0'
Jeremy Ashkenas merging in #336. fb8da91
Commits on May 27, 2011
Jeremy Ashkenas Issue #250 -- duplicated QUnit. ed63632
Jeremy Ashkenas Issue #246 -- never fire nested change events for the same model. The…
… top-level one will do.
Jeremy Ashkenas better document that hasChanged, previous, etc are only valid during …
…a change event. Issue #240
Jeremy Ashkenas partial issue #239, always pass options to error callbacks / events. 87a81e4
Jeremy Ashkenas Merging in #232. Allow destroy() to be called on non-persisted object…
…s ... just in case.
Jeremy Ashkenas Adding the Unofficial google group to the documentation. 93c82aa
Jeremy Ashkenas ouch, leaking global attrs. (shakes fist) ff57b65
Jeremy Ashkenas adding headers for all Backbone.js example apps d568305
Jeremy Ashkenas Adding Chop as a Backbone example. 2620c6a
Commits on Jun 04, 2011
Loren Sands-Ramshaw lorensr clarified example; fixed typo b28bb50
Commits on Jun 14, 2011
Niall Smart niallsmart Collection.add should fail if duplicate id/cid exists 0853866
Jeremy Ashkenas Adding Chop, Fluxiom, And Menagerie Vet 4057591
Jeremy Ashkenas merged in gh-pages 9bdbdd8
Jeremy Ashkenas adding quoteroller 6ca2dc6
Jeremy Ashkenas Merge branch 'gh-pages' 32deec5
Commits on Jun 15, 2011
Artur Adib arturadib Minor doc typo 3e4f628
Commits on Jun 16, 2011
Samuel Clay samuelclay Merge pull request #422 from arturadib/master
Minor doc typo
Commits on Jun 17, 2011
Francis Gulotta Test complex query strings. Fails in some browsers. 621c9ed
Commits on Jun 18, 2011
Loren Sands-Ramshaw lorensr removed unused var 245acb0
Loren Sands-Ramshaw lorensr expanded example 2ed2af6
Commits on Jun 20, 2011
Jeremy Ashkenas Adding as an example. 61c4874
Jeremy Ashkenas Merge branch 'gh-pages' d2a7309
Jonathan Roes jroes Minor doc typos 16eb3f3
Samuel Clay samuelclay Merge pull request #432 from jroes/master
Couple of doc typo fixes
Commits on Jun 21, 2011
Sunil Pai threepointone Allow initialize on any class to pass on original arguments. 3eb075a
Commits on Jun 23, 2011
Gavin Huang Fix unit test for model.isNew() 573c347
Gavin Huang Model is no longer considered to be new if its id is a falsey value 4e9037b
Commits on Jun 30, 2011
Jeremy Ashkenas Merge pull request #438 from gravof/master
Model is no longer considered to be new if its id is a falsey value
Jeremy Ashkenas fixing comment. fa6092b
Jeremy Ashkenas Merge pull request #435 from threepointone/patch-1
Allow initialize on any class to pass on original arguments.
Jeremy Ashkenas Merge pull request #430 from reconbot/master
Add complex query string router test
Jeremy Ashkenas removing complex router text (unfixable) ba1d9a1
Jeremy Ashkenas #426, better error message when events are missing. 77caaed
Jeremy Ashkenas Issue #417. Word choice for the literal minded. cc46300
Jeremy Ashkenas Merge pull request #414 from niallsmart/master
Fix for issue #413 - collection.add should fail for duplicates
Commits on Jul 01, 2011
Jeremy Ashkenas Merge pull request #395 from lorensr/master
Clarified/expanded examples; fixed typos.
Jeremy Ashkenas restoring some examples. e67422a
Jeremy Ashkenas slightly saner validation on initialize. ddf1a83
Jeremy Ashkenas almost to 0.5.0... af674c9
Jeremy Ashkenas link to association extensions. 8f07f96
Jeremy Ashkenas replacing setLocation and saveLocation with navigate, after Spine's API. 2e1f85d
Jeremy Ashkenas tweaking transparent URL upgrades. 0798d97