From 41f3b0c333712fa2e0bd17197e77a6e0836a5232 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 8 Jan 2016 13:41:33 +0000 Subject: [PATCH] Fix variable leak in theme.js --- red/api/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/red/api/theme.js b/red/api/theme.js index 0fc502678..ae8c260b2 100644 --- a/red/api/theme.js +++ b/red/api/theme.js @@ -56,8 +56,6 @@ function serveFile(app,baseUrl,file) { module.exports = { init: function(runtime) { var settings = runtime.settings; - var i; - var url; themeContext = clone(defaultContext); if (runtime.version) { themeContext.version = runtime.version(); @@ -68,6 +66,8 @@ module.exports = { }, app: function() { + var i; + var url; themeSettings = {}; var themeApp = express();