From da08e74374929c99afdac8bb3b9600fe37527062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 14 Feb 2013 12:50:51 -0800 Subject: [PATCH] Clean up code from #156. --- src/core/PaperScript.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 7000d1a4..aad9d366 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -294,10 +294,11 @@ var PaperScript = this.PaperScript = new function() { } } - // Catch cases where paperjs is loaded after the browser event has already occurred. - if ( document.readyState === "complete" ) { + // Catch cases where paper.js is loaded after the browser event has already + // occurred. + if (document.readyState === 'complete') { // Handle it asynchronously - setTimeout( load ); + setTimeout(load); } else { DomEvent.add(window, { load: load }); }