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

Unified Diff: lib/elemHide.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
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();
« lib/common.js ('K') | « lib/downloader.js ('k') | lib/elemHideEmulation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld