mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Directly access project.view.
This commit is contained in:
parent
44291fe33b
commit
75072bde4f
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ var PaperScript = this.PaperScript = new function() {
|
||||||
function evaluate(code, scope) {
|
function evaluate(code, scope) {
|
||||||
// Set currently active scope.
|
// Set currently active scope.
|
||||||
paper = scope;
|
paper = scope;
|
||||||
var view = scope.view,
|
var view = scope.project.view,
|
||||||
tool = /on(?:Key|Mouse)(?:Up|Down|Move|Drag)/.test(code)
|
tool = /on(?:Key|Mouse)(?:Up|Down|Move|Drag)/.test(code)
|
||||||
&& new Tool(),
|
&& new Tool(),
|
||||||
res;
|
res;
|
||||||
|
|
Loading…
Reference in a new issue