Skip to content

Commit

Permalink
removed unnecessary TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
behnammodi committed Mar 27, 2020
1 parent b428eef commit 499f2f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -48,8 +48,7 @@ function once(name, func) {
*/
function emit(name, arg) {
var refunds = [];
if (subscribes[name])
// TODO: we can replace `forEach` with `reduce`
if (subscribes[name])
subscribes[name].forEach(function (func) {
// TODO: apply `arguments` to `func` for send multi arg to `func`
// TODO: and after that, we need to update test
Expand Down

0 comments on commit 499f2f5

Please sign in to comment.