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,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 });
}