Skip to content

Commit

Permalink
use viewId if passed in config
Browse files Browse the repository at this point in the history
  • Loading branch information
selaux committed Mar 9, 2014
1 parent 9c6e98a commit c69569d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Module.js
Expand Up @@ -13,7 +13,12 @@ Module = Backbone.Model.extend({
this.attributes = {};
this.id = config.id;
this.config = _.extend({}, this.defaults, _.omit(config, 'id'));
this.title = this.config.title;
if (this.config.title) {
this.title = this.config.title;
}
if (this.config.viewId) {
this.viewId = this.config.viewId;
}
this.initialize();
}
});
Expand Down

0 comments on commit c69569d

Please sign in to comment.