mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Export PaperScope reference into PaperScript as well, so the global paper
always points to the current scope.
This commit is contained in:
parent
7865b42cf3
commit
64aaabbc2e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue