From 529a691e1d29d7445d690fcbc5d6301d2602d739 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 22 Jun 2015 09:07:31 +0100 Subject: [PATCH] Add clearTimeout to function node sandbox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (to be a pair with setTimeout…) --- nodes/core/core/80-function.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/core/core/80-function.js b/nodes/core/core/80-function.js index d8e480d84..ce5fdb20a 100644 --- a/nodes/core/core/80-function.js +++ b/nodes/core/core/80-function.js @@ -86,7 +86,8 @@ module.exports = function(RED) { context: { global:RED.settings.functionGlobalContext || {} }, - setTimeout: setTimeout + setTimeout: setTimeout, + clearTimeout: clearTimeout }; var context = vm.createContext(sandbox); try {