From 1fa8c5e2e7cf9ed6aff2ace6fe36e6ea2334917a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 23 Apr 2014 17:36:13 +0100 Subject: [PATCH] Add so-far-meaningless wrapper to pp2filter. Will check new implementation matches old. --- src/mkws-filter.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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; -- 1.7.10.4