Permalink
Browse files

Backbone.js 1.1.0

  • Loading branch information...
1 parent 41f815d commit 0a4399e3de5cb2ab75a0338669582f18c1fae3ae @jashkenas jashkenas committed Oct 11, 2013
Showing with 774 additions and 1,003 deletions.
  1. +2 −4 backbone-min.js
  2. +1 −1 backbone-min.map
  3. +4 −8 backbone.js
  4. +666 −860 docs/backbone.html
  5. +18 −38 docs/backbone.localstorage.html
  6. +1 −9 docs/docco.css
  7. +36 −72 docs/todos.html
  8. +43 −9 index.html
  9. +1 −1 package.json
  10. +2 −1 test/collection.js
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-// Backbone.js 1.0.0
+// Backbone.js 1.1.0
// (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
// (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -35,7 +35,7 @@
}
// Current version of the library. Keep in sync with `package.json`.
- Backbone.VERSION = '1.0.0';
+ Backbone.VERSION = '1.1.0';
// Require Underscore, if we're on the server, and it's not already present.
var _ = root._;
@@ -761,9 +761,9 @@
}
options.previousModels = this.models;
this._reset();
- this.add(models, _.extend({silent: true}, options));
+ models = this.add(models, _.extend({silent: true}, options));
if (!options.silent) this.trigger('reset', this, options);
- return this;
+ return models;
},
// Add a model to the end of the collection.
@@ -981,10 +981,6 @@
// having to worry about render order ... and makes it easy for the view to
// react to specific changes in the state of your models.
- // Options with special meaning *(e.g. model, collection, id, className)* are
- // attached directly to the view. See `viewOptions` for an exhaustive
- // list.
-
// Creating a Backbone.View creates its initial element outside of the DOM,
// if an existing element is not provided...
var View = Backbone.View = function(options) {
Oops, something went wrong.

0 comments on commit 0a4399e

Please sign in to comment.