pathwatcher
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -67,3 +67,3 @@ var binding = require('../build/Release/pathwatcher.node'); | ||
this.handleWatcher = null; | ||
for (var i = 0; i < handleWatchers.length; ++i) | ||
for (var i in handleWatchers) | ||
if (handleWatchers[i].path == path) { | ||
@@ -99,3 +99,3 @@ this.handleWatcher = handleWatchers[i]; | ||
exports.closeAllWatchers = function() { | ||
for (var i = 0; i < handleWatchers.length; ++i) | ||
for (var i in handleWatchers) | ||
handleWatchers[i].close(); | ||
@@ -108,6 +108,6 @@ | ||
var paths = []; | ||
for (var i = 0; i < handleWatchers.length; ++i) | ||
paths.push(handleWatchers.path); | ||
for (var i in handleWatchers) | ||
paths.push(handleWatchers[i].path); | ||
return paths; | ||
} | ||
@@ -6,3 +6,3 @@ { | ||
"description": "watch events of a file", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
8542