diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-03-15 15:53:44 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-03-15 15:53:44 -0700 |
commit | 5d5c8cf04a092cf2eb8093ad525b69e34924c977 (patch) | |
tree | 44cc594499e776a261a8ec0af74c913944c2e24e | |
parent | 6befc72f829bfc7c027da8e96b12cf9d2a8f6a8e (diff) | |
download | node-5d5c8cf04a092cf2eb8093ad525b69e34924c977.tar.gz |
Fix StatWatcher typo
-rw-r--r-- | src/node_stat_watcher.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index f5fd09c8b..88ae9c694 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -21,7 +21,7 @@ void StatWatcher::Initialize(Handle<Object> target) { constructor_template = Persistent<FunctionTemplate>::New(t); constructor_template->Inherit(EventEmitter::constructor_template); constructor_template->InstanceTemplate()->SetInternalFieldCount(1); - constructor_template->SetClassName(String::NewSymbol("StatWatcherWatcher")); + constructor_template->SetClassName(String::NewSymbol("StatWatcher")); change_symbol = NODE_PSYMBOL("change"); stop_symbol = NODE_PSYMBOL("stop"); @@ -29,7 +29,7 @@ void StatWatcher::Initialize(Handle<Object> target) { NODE_SET_PROTOTYPE_METHOD(constructor_template, "start", StatWatcher::Start); NODE_SET_PROTOTYPE_METHOD(constructor_template, "stop", StatWatcher::Stop); - target->Set(String::NewSymbol("StatWatcherWatcher"), constructor_template->GetFunction()); + target->Set(String::NewSymbol("StatWatcher"), constructor_template->GetFunction()); } |