[Pkg-javascript-commits] [backbone] 18/19: View#_reset -> View#_configure

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.1.1
in repository backbone.

commit 8878c2236a20b233c3db7325fb4b81e8a3778d03
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Wed Oct 13 22:42:49 2010 -0400

    View#_reset -> View#_configure
---
 backbone.js | 4 ++--
 index.html  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/backbone.js b/backbone.js
index 88d8f16..c2f59aa 100644
--- a/backbone.js
+++ b/backbone.js
@@ -488,7 +488,7 @@
   // Creating a Backbone.View creates its initial element outside of the DOM,
   // if an existing element is not provided...
   Backbone.View = function(options) {
-    this._reset(options || {});
+    this._configure(options || {});
     if (this.options.el) {
       this.el = this.options.el;
     } else {
@@ -573,7 +573,7 @@
     // Performs the initial configuration of a View with a set of options.
     // Keys with special meaning *(model, collection, id, className)*, are
     // attached directly to the view.
-    _reset : function(options) {
+    _configure : function(options) {
       if (this.options) options = _.extend({}, this.options, options);
       if (options.model)      this.model      = options.model;
       if (options.collection) this.collection = options.collection;
diff --git a/index.html b/index.html
index 9fd9061..7742bb5 100644
--- a/index.html
+++ b/index.html
@@ -464,7 +464,7 @@ var Note = Backbone.Model.extend({
   set: function(attributes, options) {
     Backbone.Model.prototype.set.call(this, attributes, options);
     ...
-  },
+  }
 });
 </pre>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list