From 7ce57c859ab914d65df9c659e1a6ef3fde79c63c Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 14 Sep 2016 14:56:14 -0400 Subject: Consolidate into a single library --- lib/run.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 lib/run.js (limited to 'lib/run.js') diff --git a/lib/run.js b/lib/run.js deleted file mode 100644 index 92441a2..0000000 --- a/lib/run.js +++ /dev/null @@ -1,20 +0,0 @@ -(function() { - var evaluate = function(node, context) { - if (typeof context === 'undefined') { - context = {}; - } - return statementEvaluators[node.className](node.dataset, node.children, context); - }; - - var statementEvaluators = getStatementEvaluators(evaluate); - - document.addEventListener('DOMContentLoaded', function() { - var t0 = performance.now(); - evaluate(document.body.children[0]); - var t1 = performance.now(); - makeReadable(document.body); - var t2 = performance.now(); - console.debug('Evaluated in ' + (t1 - t0) + 'ms'); - console.debug('Rendered in ' + (t2 - t1) + 'ms'); - }); -})(); -- cgit v1.2.3