mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 14:20:12 -04:00
Fix Node.js support.
This commit is contained in:
parent
cbba321977
commit
7247c1a5a2
4 changed files with 5 additions and 7 deletions
src/core
|
@ -155,7 +155,7 @@ var PaperScript = this.PaperScript = new function() {
|
|||
function evaluate(code, scope) {
|
||||
// Set currently active scope.
|
||||
paper = scope;
|
||||
var view = scope.project.view,
|
||||
var view = scope.project && scope.project.view,
|
||||
res;
|
||||
// Define variables for potential handlers, so eval() calls below to
|
||||
// fetch their values do not require try-catch around them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue