mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Defer creation of Pushbullet eventemitter
This commit is contained in:
parent
e41893eccb
commit
db0047379f
@ -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;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pushbullet",
|
||||
"version" : "0.0.4",
|
||||
"version" : "0.0.5",
|
||||
"description" : "A Node-RED node to send alerts via Pushbullet",
|
||||
"dependencies" : {
|
||||
"pushbullet": "1.4.*",
|
||||
|
Loading…
Reference in New Issue
Block a user