Misc tidy ups of jsHint "issues" for some node-red-nodes

This commit is contained in:
dceejay
2015-02-05 13:52:20 +00:00
parent 3644f16a89
commit f4fdebfba5
6 changed files with 63 additions and 64 deletions

View File

@@ -35,10 +35,10 @@ module.exports = function(RED) {
}
}
else {
var l = JSON.stringify(msg.payload).length;
var le = JSON.stringify(msg.payload).length;
msg.payload = msgpack.encode(msg.payload);
node.send(msg);
node.status({text:l +" o->b "+ msg.payload.length});
node.status({text:le +" o->b "+ msg.payload.length});
}
});
}