Permalink
Browse files

fixed bug

  • Loading branch information...
1 parent 2361157 commit f4ea94ceafac5cecedb16a078a7c1953e57f7666 @olalonde committed Nov 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -60,8 +60,8 @@ Notif.prototype._executeHandlers = function (notification, cb) {
handlers.forEach(function (handler) {
// hanlders are run asynchronously
handler(notification, function (err, res) {
- errors.push(err);
- results.push(res);
+ if (err) errors.push(err);
+ if (res) results.push(res);
callbackCount++;
// handle last call back -> call external callback with

0 comments on commit f4ea94c

Please sign in to comment.