Permalink
Browse files

small error

  • Loading branch information...
1 parent 5543492 commit c16c86fa4172a8e38af4880619819d12a73c4abe @garaboncias garaboncias committed Jul 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/daemon.js
View
4 lib/daemon.js
@@ -168,7 +168,7 @@ var daemon = function(config) {
if (Object.prototype.toString.call(this._ev) === '[object Array]'){
this._ev.forEach(function(item){
tmp = {};
- tmp[this._ev[i].name] = this._ev[i].value;
+ tmp[item.name] = item.value;
ev.push(tmp);
});
} else {
@@ -483,4 +483,4 @@ var util = require('util'),
// Inherit Events
util.inherits(daemon,EventEmitter);
-module.exports = daemon;
+module.exports = daemon;

0 comments on commit c16c86f

Please sign in to comment.