1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 00:10:45 +00:00

Keeping JSHint on it's toes

This commit is contained in:
Jeremy Ruston 2012-01-21 14:03:03 +00:00
parent b96f0c1bd6
commit 61adbbf83a
2 changed files with 5 additions and 4 deletions

View File

@ -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<tree.length; t++) {
output.push(utils.stitchElement("li",null,{classNames: ["treeArrayMember"]}));
@ -325,8 +326,8 @@ utils.renderObject = function(output,type,node,customTemplates) {
classNames: ["splitLabelRight"]
}));
}
output.push("</li>")
},
output.push("</li>");
};
renderNodeHtml = function(output,node) {
if(node instanceof Array) {
renderArrayHtml(output,node);

View File

@ -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: *");