From 91b94e5d1aab3d946814086e33333c0511bd05e0 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 3 Jan 2012 17:42:33 +0000 Subject: [PATCH] Keeping JSHint happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it's a fastidious master, etc…. --- js/WikiTextCompiler.js | 2 +- js/WikiTextParser.js | 1 + tiddlywiki5/BootStart.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/WikiTextCompiler.js b/js/WikiTextCompiler.js index a47bb403a..ad27a698e 100644 --- a/js/WikiTextCompiler.js +++ b/js/WikiTextCompiler.js @@ -117,7 +117,7 @@ var compileJavaScript = function(tree) { default: console.log(node); throw "Unknown JavaScript node type: " + node.type; - break; + //break; } }; compileJavaScriptTree = function(tree) { diff --git a/js/WikiTextParser.js b/js/WikiTextParser.js index 5097e2561..fcdffed26 100644 --- a/js/WikiTextParser.js +++ b/js/WikiTextParser.js @@ -131,6 +131,7 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) { }; WikiTextParser.prototype.render = function(type,treenode,store,title) { + /*jslint evil: true */ var compiler = new WikiTextCompiler(store,title,this); var code = compiler.compile(type,treenode); var fn = eval(code); diff --git a/tiddlywiki5/BootStart.js b/tiddlywiki5/BootStart.js index cbf847856..fcb1e8a0c 100644 --- a/tiddlywiki5/BootStart.js +++ b/tiddlywiki5/BootStart.js @@ -2,6 +2,6 @@ var modules = {}; var define = function(name,module) { modules[name] = {module: module}; -} +}; define("util",function(require,exports) {});