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

Add strict to function node

This commit is contained in:
Dave C-J 2014-07-08 12:27:09 +01:00
parent 9bc9994354
commit 6fb9739245

View File

@ -15,6 +15,7 @@
**/
module.exports = function(RED) {
"use strict";
var util = require("util");
var vm = require("vm");
var fs = require('fs');
@ -45,7 +46,7 @@ module.exports = function(RED) {
for (var m in results) {
if (results[m]) {
if (util.isArray(results[m])) {
for (var n in results[m]) {
for (var n=0; n < results[m].length; n++) {
results[m][n]._topic = msg._topic;
}
} else {