Clean up code from #156.

This commit is contained in:
Jürg Lehni 2013-02-14 12:50:51 -08:00
parent 6729646e7a
commit da08e74374

View file

@ -294,8 +294,9 @@ var PaperScript = this.PaperScript = new function() {
} }
} }
// Catch cases where paperjs is loaded after the browser event has already occurred. // Catch cases where paper.js is loaded after the browser event has already
if ( document.readyState === "complete" ) { // occurred.
if (document.readyState === 'complete') {
// Handle it asynchronously // Handle it asynchronously
setTimeout(load); setTimeout(load);
} else { } else {