Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky authored and ry committed Sep 23, 2011
1 parent 9ad3340 commit 66293f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/fs.js
Expand Up @@ -601,7 +601,7 @@ function errnoException(errorno, syscall) {
}


function FSWather() {
function FSWatcher() {
var self = this;
var FSEvent = process.binding('fs_event_wrap').FSEvent;
this._handle = new FSEvent();
Expand All @@ -614,9 +614,9 @@ function FSWather() {
}
};
}
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) {
Expand All @@ -625,7 +625,7 @@ FSWather.prototype.start = function(filename, persistent) {
}
};

FSWather.prototype.close = function() {
FSWatcher.prototype.close = function() {
this._handle.close();
};

Expand All @@ -648,7 +648,7 @@ fs.watch = function(filename) {

if (options.persistent === undefined) options.persistent = true;

watcher = new FSWather();
watcher = new FSWatcher();
watcher.start(filename, options.persistent);

watcher.addListener('change', listener);
Expand Down

0 comments on commit 66293f6

Please sign in to comment.