fs: hook up handle wrap to owning object
This commit is contained in:
parent
d2eaabd0df
commit
25aea2a072
@ -737,6 +737,7 @@ function FSWatcher() {
|
|||||||
var self = this;
|
var self = this;
|
||||||
var FSEvent = process.binding('fs_event_wrap').FSEvent;
|
var FSEvent = process.binding('fs_event_wrap').FSEvent;
|
||||||
this._handle = new FSEvent();
|
this._handle = new FSEvent();
|
||||||
|
this._handle.owner = this;
|
||||||
|
|
||||||
this._handle.onchange = function(status, event, filename) {
|
this._handle.onchange = function(status, event, filename) {
|
||||||
if (status) {
|
if (status) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user