Skip to content

Commit

Permalink
fix(filter): copy async pres correctly with filter()
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 24, 2018
1 parent 1f641f4 commit 1b1ed8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -334,6 +334,8 @@ Kareem.prototype.filter = function(fn) {
continue;
}

hooks.numAsync = hooks.filter(h => h.isAsync).length;

clone._pres.set(name, hooks);
}

Expand Down

0 comments on commit 1b1ed8a

Please sign in to comment.