Index: lib/elemHideEmulation.js |
=================================================================== |
--- a/lib/elemHideEmulation.js |
+++ b/lib/elemHideEmulation.js |
@@ -16,26 +16,26 @@ |
*/ |
"use strict"; |
/** |
* @fileOverview Element hiding emulation implementation. |
*/ |
-const {ElemHide} = require("./elemHide"); |
-const {Filter} = require("./filterClasses"); |
+import {ElemHide} from "./elemHide"; |
+import {Filter} from "./filterClasses"; |
let filters = Object.create(null); |
/** |
* Container for element hiding emulation filters |
* @class |
*/ |
-let ElemHideEmulation = { |
+export let ElemHideEmulation = { |
/** |
* Removes all known filters |
*/ |
clear() |
{ |
filters = Object.create(null); |
}, |
@@ -73,9 +73,8 @@ |
!ElemHide.getException(filter, domain)) |
{ |
result.push(filter); |
} |
} |
return result; |
} |
}; |
-exports.ElemHideEmulation = ElemHideEmulation; |