From 75072bde4f335dd06977fb62d4018906f06ef5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 18 Nov 2011 20:33:27 +0100 Subject: [PATCH] Directly access project.view. --- src/core/PaperScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 846aea9c..d97eb531 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -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;