From 96e58f5b9b6badb21cf9c6765be5946388dff4fe Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 8 May 2015 21:07:37 +0100 Subject: [PATCH] Extend state by filter entries and overrides in a single shot. --- src/mkws-team.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index 90f9d4f..6f5d7b5 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -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) && -- 1.7.10.4