Revert back to PaperScope#setup() and keep #initialize0 simple.

This commit is contained in:
Jürg Lehni 2011-08-01 11:01:27 +01:00
parent 6086165d1a
commit 6b6d5909c1
2 changed files with 25 additions and 18 deletions

View file

@ -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.