node: minor.
This commit is contained in:
parent
5e78cf4998
commit
4f68d4cde0
@ -123,21 +123,10 @@ Node.prototype.init = function init() {
|
||||
this.emit('error', err);
|
||||
});
|
||||
|
||||
this.hook('preopen', () => {
|
||||
this.handlePreopen();
|
||||
});
|
||||
|
||||
this.hook('preclose', () => {
|
||||
this.handlePreclose();
|
||||
});
|
||||
|
||||
this.hook('open', () => {
|
||||
this.handleOpen();
|
||||
});
|
||||
|
||||
this.hook('close', () => {
|
||||
this.handleClose();
|
||||
});
|
||||
this.hook('preopen', () => this.handlePreopen());
|
||||
this.hook('preclose', () => this.handlePreclose());
|
||||
this.hook('open', () => this.handleOpen());
|
||||
this.hook('close', () => this.handleClose());
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user