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) |
{ |