Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/elemHideEmulation.js

Issue 29715555: Issue 6447 - Switch to Harmony modules in lib/* (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 6, 2018, 7:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/common.js ('K') | « lib/elemHide.js ('k') | lib/events.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« lib/common.js ('K') | « lib/elemHide.js ('k') | lib/events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld