mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 06:10:14 -04: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…
Add table
Add a link
Reference in a new issue