From 61adbbf83a71b0f5c626ad5b2cc13fd3ef1d74bc Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 21 Jan 2012 14:03:03 +0000 Subject: [PATCH] Keeping JSHint on it's toes --- js/Utils.js | 7 ++++--- js/macros/info.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/js/Utils.js b/js/Utils.js index 362068491..f8adb216c 100755 --- a/js/Utils.js +++ b/js/Utils.js @@ -300,7 +300,8 @@ Arguments for the custom template functions: The custom template function should push the string rendering of the node to the output array, and return true, or just return false if it cannot render the node. */ utils.renderObject = function(output,type,node,customTemplates) { - var renderArrayHtml = function(output,tree) { + var renderNodeHtml, + renderArrayHtml = function(output,tree) { output.push(utils.stitchElement("ul",null,{classNames: ["treeArray"]})); for(var t=0; t") - }, + output.push(""); + }; renderNodeHtml = function(output,node) { if(node instanceof Array) { renderArrayHtml(output,node); diff --git a/js/macros/info.js b/js/macros/info.js index 36a873033..eab250880 100644 --- a/js/macros/info.js +++ b/js/macros/info.js @@ -22,7 +22,7 @@ exports.macro = { switch(info) { case "parsetree": return "Parse tree: " + parseTree.toString(type); - break; + //break; case "dependencies": if(parseTree.dependencies === null) { return encoder("Dependencies: *");