Index: lib/elemHide.js |
=================================================================== |
--- a/lib/elemHide.js |
+++ b/lib/elemHide.js |
@@ -16,18 +16,18 @@ |
*/ |
"use strict"; |
/** |
* @fileOverview Element hiding implementation. |
*/ |
-const {ElemHideException} = require("./filterClasses"); |
-const {FilterNotifier} = require("./filterNotifier"); |
+import {ElemHideException} from "./filterClasses"; |
+import {FilterNotifier} from "./filterNotifier"; |
/** |
* Lookup table, filters by their associated key |
* @type {Object} |
*/ |
let filterByKey = []; |
/** |
@@ -79,17 +79,17 @@ |
* @type {Object} |
*/ |
let exceptions = Object.create(null); |
/** |
* Container for element hiding filters |
* @class |
*/ |
-let ElemHide = exports.ElemHide = { |
+export let ElemHide = { |
/** |
* Removes all known filters |
*/ |
clear() |
{ |
filterByKey = []; |
keyByFilter = new Map(); |
filtersByDomain = new Map(); |