From d2de378b5618363f7cbd66bc91ece4c8f1157af4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 23 Apr 2014 17:31:46 +0100 Subject: [PATCH] Add filterSet.toJSON method (used only for logging). Remove the encapsulation-violating filterSet.list method. --- src/mkws-filter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mkws-filter.js b/src/mkws-filter.js index e37a0bd..eff521c 100644 --- a/src/mkws-filter.js +++ b/src/mkws-filter.js @@ -5,9 +5,9 @@ function filterSet(team) { var that = {}; - that.list = function() { - return m_list; - }; + that.toJSON = function() { + return $.toJSON(m_list); + } that.add = function(filter) { m_list.push(filter); -- 1.7.10.4