From 3190a5a7f49b177b0177aacdc6fabc2525eef4da Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 5 Oct 2010 16:24:25 -0400 Subject: [PATCH] Backbone.View option handling tweak. --- backbone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index 990eca32..148b1ec1 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;