Index: lib/filterNotifier.js |
diff --git a/lib/filterNotifier.js b/lib/filterNotifier.js |
index 8e24ff70e7307173ad5e929ee5d12dddc451100b..624b2bf48d3c0fa5e8008a5690800b471fa846ab 100644 |
--- a/lib/filterNotifier.js |
+++ b/lib/filterNotifier.js |
@@ -21,6 +21,7 @@ |
*/ |
let {EventEmitter} = require("events"); |
+let {desc} = require("coreUtils"); |
const CATCH_ALL = "__all"; |
@@ -28,10 +29,7 @@ const CATCH_ALL = "__all"; |
* This class allows registering and triggering listeners for filter events. |
* @class |
*/ |
-exports.FilterNotifier = |
-{ |
- __proto__: new EventEmitter(), |
- |
+exports.FilterNotifier = Object.create(new EventEmitter(), desc({ |
/** |
* Adds a listener |
* |
@@ -71,4 +69,4 @@ exports.FilterNotifier = |
this.emit(action, item, param1, param2, param3); |
this.emit(CATCH_ALL, action, item, param1, param2, param3); |
} |
-}; |
+})); |