Add filterSet.toJSON method (used only for logging).
authorMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 16:31:46 +0000 (17:31 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 16:31:46 +0000 (17:31 +0100)
Remove the encapsulation-violating filterSet.list method.

src/mkws-filter.js

index e37a0bd..eff521c 100644 (file)
@@ -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);