mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -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,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 {
|
||||||
|
|
Loading…
Reference in a new issue