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

Unified Diff: lib/events.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/events.js
===================================================================
--- a/lib/events.js
+++ b/lib/events.js
@@ -17,22 +17,22 @@
"use strict";
/**
* Registers and emits named events.
*
* @constructor
*/
-exports.EventEmitter = function()
+export function EventEmitter()
{
this._listeners = Object.create(null);
-};
+}
-exports.EventEmitter.prototype = {
+EventEmitter.prototype = {
/**
* Adds a listener for the specified event name.
*
* @param {string} name
* @param {function} listener
*/
on(name, listener)
{
« lib/common.js ('K') | « lib/elemHideEmulation.js ('k') | lib/filterClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld