[Pkg-javascript-commits] [backbone] 31/101: Backbone.View option handling tweak.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:58:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.1.0
in repository backbone.
commit 3190a5a7f49b177b0177aacdc6fabc2525eef4da
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Tue Oct 5 16:24:25 2010 -0400
Backbone.View option handling tweak.
---
backbone.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 990eca3..148b1ec 100644
--- a/backbone.js
+++ b/backbone.js
@@ -449,7 +449,7 @@
Backbone.View = function(options) {
this.modes = {};
- this.configure(options || {});
+ this.configure(options);
if (this.options.el) {
this.el = this.options.el;
} else {
@@ -474,6 +474,7 @@
tagName : 'div',
configure : function(options) {
+ options || (options = {});
if (this.options) options = _.extend({}, this.options, options);
if (options.model) this.model = options.model;
if (options.collection) this.collection = options.collection;
--
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