Skip to content

Commit

Permalink
fix options default order to fix bug with improper page being rendered
Browse files Browse the repository at this point in the history
also add missing comma for previous commit
  • Loading branch information
martenson committed Oct 8, 2015
1 parent 39f5b7a commit 775ee33
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var LibraryListView = Backbone.View.extend({
* @param {object} options an object with options
*/
initialize : function( options ){
this.options = _.defaults( this.options || {}, this.defaults, options );
this.options = _.defaults( this.options || {}, options, this.defaults );
var that = this;
this.modal = null;
// map of library model ids to library views = cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var LibraryToolbarView = Backbone.View.extend({

defaults: {
search_term: ''
}
},

events: {
'click #create_new_library_btn' : 'showLibraryModal',
Expand All @@ -22,7 +22,7 @@ var LibraryToolbarView = Backbone.View.extend({
},

initialize: function( options ){
this.options = _.defaults( this.options || {}, this.defaults, options );
this.options = _.defaults( this.options || {}, options, this.defaults );
this.render();
},

Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/library/library-librarylist-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/maps/mvc/library/library-librarytoolbar-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 775ee33

Please sign in to comment.