From: Mike Taylor Date: Wed, 23 Apr 2014 16:36:13 +0000 (+0100) Subject: Add so-far-meaningless wrapper to pp2filter. X-Git-Tag: 1.0.0~868 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1fa8c5e2e7cf9ed6aff2ace6fe36e6ea2334917a Add so-far-meaningless wrapper to pp2filter. Will check new implementation matches old. --- diff --git a/src/mkws-filter.js b/src/mkws-filter.js index eff521c..353fce5 100644 --- a/src/mkws-filter.js +++ b/src/mkws-filter.js @@ -7,7 +7,7 @@ function filterSet(team) { that.toJSON = function() { return $.toJSON(m_list); - } + }; that.add = function(filter) { m_list.push(filter); @@ -53,9 +53,18 @@ function filterSet(team) { } } return false; - } + }; that.pp2filter = function() { + var OLD = that.OLD_pp2filter(); + var NEW = that.NEW_pp2filter(); + if (OLD !== NEW) { + alert("pp2filter(): OLD[" + OLD + "] !== NEW[" + NEW + "]"); + } + return OLD; + }; + + that.OLD_pp2filter = function() { var res = ""; for (var i in m_list) { @@ -72,7 +81,11 @@ function filterSet(team) { } return res; - } + }; + + that.NEW_pp2filter = function() { + return that.OLD_pp2filter(); + }; that.pp2limit = function(initial) { var res = initial || ""; @@ -86,7 +99,7 @@ function filterSet(team) { } return res; - } + }; return that;