fs: hook up handle wrap to owning object

This commit is contained in:
Ben Noordhuis 2012-04-27 04:39:05 +02:00
parent d2eaabd0df
commit 25aea2a072

View File

@ -737,6 +737,7 @@ function FSWatcher() {
var self = this;
var FSEvent = process.binding('fs_event_wrap').FSEvent;
this._handle = new FSEvent();
this._handle.owner = this;
this._handle.onchange = function(status, event, filename) {
if (status) {