Extend state by filter entries and overrides in a single shot.
authorMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 20:07:37 +0000 (21:07 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 20:07:37 +0000 (21:07 +0100)
src/mkws-team.js

index 90f9d4f..6f5d7b5 100644 (file)
@@ -80,8 +80,7 @@ mkws.makeTeam = function($, teamName) {
     var state = $.extend(true, {}, m_state);
     var tmp = state.filters;
     delete state.filters;
-    $.extend(state, tmp.fragmentItems());
-    $.extend(state, overrides ? overrides : {});
+    $.extend(state, tmp.fragmentItems(), overrides ? overrides : {});
 
     for (var key in state) {
       if (state.hasOwnProperty(key) &&