From 3324b083b734a08de1fc6ec2e4e7a5923230c9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 3 Mar 2011 18:53:06 +0000 Subject: [PATCH] Always execute PaperScripts on load, not on domready, as we want assets to be present as well. --- src/util/PaperScript.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/PaperScript.js b/src/util/PaperScript.js index 95a3de88..1726d4f5 100644 --- a/src/util/PaperScript.js +++ b/src/util/PaperScript.js @@ -1,5 +1,7 @@ var PaperScript = new function() { function compile(code) { + // TODO: Parse code and replace math operators with calls to methods + // that handle overloading. return code; } @@ -43,7 +45,7 @@ var PaperScript = new function() { } if (window.addEventListener) { - addEventListener('DOMContentLoaded', runScripts, false); + addEventListener('load', runScripts, false); } else { attachEvent('onload', runScripts); }