mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Revert back to PaperScope#setup() and keep #initialize0 simple.
This commit is contained in:
parent
6086165d1a
commit
6b6d5909c1
2 changed files with 25 additions and 18 deletions
src/core
|
@ -239,7 +239,8 @@ var PaperScript = this.PaperScript = new function() {
|
|||
// so a project is created for it now.
|
||||
var canvas = PaperScript.getAttribute(script, 'canvas');
|
||||
canvas = canvas && document.getElementById(canvas);
|
||||
var scope = new PaperScope(canvas, script);
|
||||
var scope = new PaperScope(script);
|
||||
scope.setup(canvas);
|
||||
if (script.src) {
|
||||
// If we're loading from a source, request that first and then
|
||||
// run later.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue