From 1221dbafb11bc0e4479cf82b4288d73e4653dedd Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 23 Apr 2014 15:06:16 +0100 Subject: [PATCH] team.targetFiltered now simply delegates to m_filterSet.targetFiltered --- src/mkws-team.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index a1e942c..91a411c 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -163,13 +163,7 @@ function team($, teamName) { that.targetFiltered = function(id) { - for (var i = 0; i < m_filterSet.list().length; i++) { - if (m_filterSet.list()[i].id === id || - m_filterSet.list()[i].id === 'pz:id=' + id) { - return true; - } - } - return false; + return m_filterSet.targetFiltered(id); }; -- 1.7.10.4