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

Unified Diff: lib/filterNotifier.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/filterNotifier.js
===================================================================
--- a/lib/filterNotifier.js
+++ b/lib/filterNotifier.js
@@ -17,33 +17,33 @@
"use strict";
/**
* @fileOverview This component manages listeners and calls them to distributes
* messages about filter changes.
*/
-const {EventEmitter} = require("./events");
-const {desc} = require("./coreUtils");
+import {EventEmitter} from "./events";
+import {desc} from "./coreUtils";
const CATCH_ALL = "__all";
/**
* @callback FilterNotifierCatchAllListener
* @param {string} action
* @param {Subscription|Filter} item
* @param {...*} additionalInfo
*/
/**
* This class allows registering and triggering listeners for filter events.
* @class
*/
-exports.FilterNotifier = Object.create(new EventEmitter(), desc({
+export let FilterNotifier = Object.create(new EventEmitter(), desc({
/**
* Adds a listener
*
* @deprecated use FilterNotifier.on(action, callback)
* @param {FilterNotifierCatchAllListener} listener
*/
addListener(listener)
{
« lib/common.js ('K') | « lib/filterListener.js ('k') | lib/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld