Export PaperScope reference into PaperScript as well, so the global paperalways points to the current scope.

This commit is contained in:
Jürg Lehni 2014-04-07 11:53:32 +02:00
parent 7865b42cf3
commit 64aaabbc2e

View file

@ -275,7 +275,7 @@ Base.exports.PaperScript = (function() {
}
}
}
expose({ _$_: _$_, $_: $_, view: view, tool: tool }, true);
expose({ _$_: _$_, $_: $_, paper: scope, view: view, tool: tool }, true);
expose(scope);
// Finally define the handler variable names as parameters and compose
// the string describing the properties for the returned object at the