From: Mike Taylor Date: Wed, 23 Apr 2014 16:31:46 +0000 (+0100) Subject: Add filterSet.toJSON method (used only for logging). X-Git-Tag: 1.0.0~869 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d2de378b5618363f7cbd66bc91ece4c8f1157af4;p=mkws-moved-to-github.git Add filterSet.toJSON method (used only for logging). Remove the encapsulation-violating filterSet.list method. --- 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);