1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Better fix for sensorTag node linting - as in actually still works...

This commit is contained in:
dceejay 2015-07-05 15:29:24 +01:00
parent ce315bfe84
commit f57d8b388a

View File

@ -16,9 +16,9 @@
module.exports = function(RED) { module.exports = function(RED) {
"use strict"; "use strict";
var SensorTag = require('sensortag'); var SensorTag = require("sensortag");
var s = function sensorTagNode(n) { function SensorTagNode(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.name = n.name; this.name = n.name;
this.topic = n.topic; this.topic = n.topic;
@ -111,7 +111,7 @@ module.exports = function(RED) {
}); });
} }
function enable(node) { var enable = function(node) {
if (node.temperature) { if (node.temperature) {
node.stag.notifyIrTemperature(function() {}); node.stag.notifyIrTemperature(function() {});
} else { } else {
@ -158,5 +158,5 @@ module.exports = function(RED) {
} }
} }
RED.nodes.registerType("sensorTag",sensorTagNode); RED.nodes.registerType("sensorTag",SensorTagNode);
} }