Index: test/elemHide.js |
diff --git a/test/elemHide.js b/test/elemHide.js |
index f073108566b4769604ec3c77a1a5b6027e3dab15..b93baa4e4400ec3a923fb6ad515e874206128154 100644 |
--- a/test/elemHide.js |
+++ b/test/elemHide.js |
@@ -29,12 +29,8 @@ let {Filter} = require("filterClasses"); |
exports.testGetSelectorsForDomain = function(test) |
{ |
- function fromText(f) |
- { |
- return (filterText) => f(Filter.fromText(filterText)); |
- } |
- let addFilter = fromText(ElemHide.add); |
- let removeFilter = fromText(ElemHide.remove); |
+ let addFilter = filterText => ElemHide.add(Filter.fromText(filterText)); |
kzar
2016/05/24 14:45:22
`this` was being clobbered for the ElemHide method
|
+ let removeFilter = filterText => ElemHide.remove(Filter.fromText(filterText)); |
function normalizeSelectors(selectors) |
{ |