Skip to content

Commit

Permalink
Reverted change to emitter where after() method delayed responding un…
Browse files Browse the repository at this point in the history
…til the next tick.
  • Loading branch information
coreybutler committed Sep 3, 2020
1 parent 17697e4 commit 9574e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngn",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"description": "A JavaScript library for building systems and frameworks.",
"main": "src/index.js",
"module": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/emitter/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class EnhancedEventEmitter extends EventEmitter {
if (typeof target === 'function') {
target(...args.slice(4))
} else {
me.delayEmit(target, 0, ...arguments)
me.emit(target, ...arguments)
}
} else {
me.#after.set(oid, meta)
Expand Down

0 comments on commit 9574e92

Please sign in to comment.