mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Defer creation of Pushbullet eventemitter
This commit is contained in:
@@ -41,7 +41,6 @@ module.exports = function(RED) {
|
||||
this.n = n;
|
||||
this.name = n.name;
|
||||
this._inputNodes = [];
|
||||
this.emitter = new EventEmitter();
|
||||
this.initialised = false;
|
||||
}
|
||||
|
||||
@@ -55,6 +54,8 @@ module.exports = function(RED) {
|
||||
if (this.initialised) {
|
||||
return;
|
||||
}
|
||||
this.emitter = new EventEmitter();
|
||||
|
||||
this.initialised = true;
|
||||
var self = this;
|
||||
|
||||
|
Reference in New Issue
Block a user