[view/DE,bugfix][xs]: use (rather than overwrite!) passed in config options.
This commit is contained in:
parent
fbacd700c7
commit
91c578d7b9
10
src/view.js
10
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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user