From 91c578d7b98292e73392c58044b938c3e20d4504 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Thu, 26 Jan 2012 23:01:51 +0000 Subject: [PATCH] [view/DE,bugfix][xs]: use (rather than overwrite!) passed in config options. --- src/view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/view.js b/src/view.js index 8195e26a..b933223f 100644 --- a/src/view.js +++ b/src/view.js @@ -76,11 +76,11 @@ my.DataExplorer = Backbone.View.extend({ initialize: function(options) { var self = this; this.el = $(this.el); - this.config = options.config || {}; - _.extend(this.config, { - displayCount: 10 - , readOnly: false - }); + this.config = _.extend({ + displayCount: 10 + , readOnly: false + }, + options.config); if (this.config.readOnly) { this.setReadOnly(); }