}
-function FSWather() {
+function FSWatcher() {
var self = this;
var FSEvent = process.binding('fs_event_wrap').FSEvent;
this._handle = new FSEvent();
}
};
}
-util.inherits(FSWather, EventEmitter);
+util.inherits(FSWatcher, EventEmitter);
-FSWather.prototype.start = function(filename, persistent) {
+FSWatcher.prototype.start = function(filename, persistent) {
var r = this._handle.start(filename, persistent);
if (r) {
}
};
-FSWather.prototype.close = function() {
+FSWatcher.prototype.close = function() {
this._handle.close();
};
if (options.persistent === undefined) options.persistent = true;
- watcher = new FSWather();
+ watcher = new FSWatcher();
watcher.start(filename, options.persistent);
watcher.addListener('change', listener);