| Index: lib/filterListener.js |
| =================================================================== |
| --- a/lib/filterListener.js |
| +++ b/lib/filterListener.js |
| @@ -1,8 +1,9 @@ |
| +/* globals XPCOM, XPCOMUtils, Services */ |
| /* |
| * This file is part of Adblock Plus <https://adblockplus.org/>, |
| * Copyright (C) 2006-2017 eyeo GmbH |
| * |
| * Adblock Plus is free software: you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 3 as |
| * published by the Free Software Foundation. |
| * |
| @@ -17,18 +18,18 @@ |
| "use strict"; |
| /** |
| * @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", {}); |
| +Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
|
kzar
2017/03/30 05:30:07
Nit: It seems you changed the order of these impor
|
| +Cu.import("resource://gre/modules/Services.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"); |