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

Unified Diff: lib/filterListener.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/filterListener.js
===================================================================
--- a/lib/filterListener.js
+++ b/lib/filterListener.js
@@ -20,24 +20,24 @@
/**
* @fileOverview Component synchronizing filter storage with Matcher
* instances and ElemHide.
*/
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {});
-const {FilterStorage} = require("./filterStorage");
-const {FilterNotifier} = require("./filterNotifier");
-const {ElemHide} = require("./elemHide");
-const {ElemHideEmulation} = require("./elemHideEmulation");
-const {defaultMatcher} = require("./matcher");
-const {ActiveFilter, RegExpFilter,
- ElemHideBase, ElemHideEmulationFilter} = require("./filterClasses");
-const {Prefs} = require("prefs");
+import {FilterStorage} from "./filterStorage";
+import {FilterNotifier} from "./filterNotifier";
+import {ElemHide} from "./elemHide";
+import {ElemHideEmulation} from "./elemHideEmulation";
+import {defaultMatcher} from "./matcher";
+import {ActiveFilter, RegExpFilter,
+ ElemHideBase, ElemHideEmulationFilter} from "./filterClasses";
+import {Prefs} from "prefs";
/**
* Increases on filter changes, filters will be saved if it exceeds 1.
* @type {number}
*/
let isDirty = 0;
/**
« lib/common.js ('K') | « lib/filterClasses.js ('k') | lib/filterNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld