Skip to content

Commit 3ce44f3

Browse files
committed
Replace Node.js built-in EventEmitter.
1 parent 126dc46 commit 3ce44f3

6 files changed

Lines changed: 430 additions & 183 deletions

File tree

builders.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
'use strict';
2828

29-
const Events = require('events');
3029
const REQUIRED = 'The field "@" is invalid.';
3130
const DEFAULT_SCHEMA = 'default';
3231
const SKIP = { $$schema: true, $$result: true, $$callback: true, $$async: true, $$index: true, $$repository: true, $$can: true, $$controller: true };
@@ -3720,7 +3719,7 @@ RESTBuilder.prototype.exec = function(callback) {
37203719
key = '$rest_' + (self.$url + flags.join(',') + (self.$data ? Qs.stringify(self.$data) : '')).hash();
37213720
var data = F.cache.read2(key);
37223721
if (data) {
3723-
var evt = new Events.EventEmitter();
3722+
var evt = new framework_utils.EventEmitter2();
37243723

37253724
setImmediate(function() {
37263725
evt.removeAllListeners();

0 commit comments

Comments
 (0)