mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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) {
|
||||
// Set currently active scope.
|
||||
paper = scope;
|
||||
var view = scope.view,
|
||||
var view = scope.project.view,
|
||||
tool = /on(?:Key|Mouse)(?:Up|Down|Move|Drag)/.test(code)
|
||||
&& new Tool(),
|
||||
res;
|
||||
|
|
Loading…
Reference in a new issue