Directly access project.view.

This commit is contained in:
Jürg Lehni 2011-11-18 20:33:27 +01:00
parent 44291fe33b
commit 75072bde4f

View file

@ -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;