From 3fcc1b56801fd5082b66835703f542d656fc65c1 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 27 Jun 2014 12:29:00 +0100 Subject: [PATCH] Missing variable declaration in tail node --- nodes/core/storage/28-tail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/storage/28-tail.js b/nodes/core/storage/28-tail.js index c879943c9..aa9b040aa 100644 --- a/nodes/core/storage/28-tail.js +++ b/nodes/core/storage/28-tail.js @@ -32,7 +32,7 @@ module.exports = function(RED) { var msg = {topic:node.filename}; if (node.split) { var strings = data.toString().split("\n"); - for (s in strings) { + for (var s in strings) { if (strings[s] != "") { msg.payload = strings[s]; node.send(msg);