mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Clean up code from #156.
This commit is contained in:
parent
6729646e7a
commit
da08e74374
1 changed files with 4 additions and 3 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue