Implement filterSet.targetFiltered function
[mkws-moved-to-github.git] / src / mkws-filter.js
index 232d0d5..290b0d0 100644 (file)
@@ -25,6 +25,16 @@ function filterSet() {
        m_list = newList;
     };
 
+    that.targetFiltered = function(id) {
+       for (var i = 0; i < m_list.length; i++) {
+           if (m_list[i].id === id ||
+               m_list[i].id === 'pz:id=' + id) {
+               return true;
+           }
+       }
+       return false;
+    }
+
     return that;
 }