team.targetFiltered now simply delegates to m_filterSet.targetFiltered
authorMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 14:06:16 +0000 (15:06 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 14:06:16 +0000 (15:06 +0100)
src/mkws-team.js

index a1e942c..91a411c 100644 (file)
@@ -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);
     };