1
0
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:
Nick O'Leary 2015-04-22 13:19:51 +01:00
parent e41893eccb
commit db0047379f
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,6 @@ module.exports = function(RED) {
this.n = n; this.n = n;
this.name = n.name; this.name = n.name;
this._inputNodes = []; this._inputNodes = [];
this.emitter = new EventEmitter();
this.initialised = false; this.initialised = false;
} }
@ -55,6 +54,8 @@ module.exports = function(RED) {
if (this.initialised) { if (this.initialised) {
return; return;
} }
this.emitter = new EventEmitter();
this.initialised = true; this.initialised = true;
var self = this; var self = this;

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-pushbullet", "name" : "node-red-node-pushbullet",
"version" : "0.0.4", "version" : "0.0.5",
"description" : "A Node-RED node to send alerts via Pushbullet", "description" : "A Node-RED node to send alerts via Pushbullet",
"dependencies" : { "dependencies" : {
"pushbullet": "1.4.*", "pushbullet": "1.4.*",