From 533817dc2e57eddeabaf5b37f6a62bc695212422 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 12 May 2015 11:15:16 +0100 Subject: [PATCH] Fix the deepCopy() method to extend an empty array instead of object. Remove debugging output from deepCopy(). Remove _list() private accessor method. --- src/mkws-filter.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mkws-filter.js b/src/mkws-filter.js index 6df47aa..23cb54b 100644 --- a/src/mkws-filter.js +++ b/src/mkws-filter.js @@ -126,8 +126,7 @@ function filterSet(team) { that.deepCopy = function() { var fs = filterSet(m_team); - document.write("setting list to " + mkws.$.toJSON(m_list) + "
"); - fs._setList($.extend({}, m_list)); + fs._setList($.extend([], m_list)); return fs; }; @@ -136,11 +135,6 @@ function filterSet(team) { m_list = list; }; - /// Shouldn't be used at all - that._list = function() { - return m_list; - }; - return that; } -- 1.7.10.4