Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small error

  • Loading branch information...
commit c16c86fa4172a8e38af4880619819d12a73c4abe 1 parent 5543492
Radics Laszlo garaboncias authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/daemon.js
4 lib/daemon.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.