mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Handle case where no project is created through execution errors.
This commit is contained in:
parent
900f3fe2dd
commit
1e744e3db7
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ var PaperScope = this.PaperScope = Base.extend(/** @lends PaperScope# */{
|
|||
* @bean
|
||||
*/
|
||||
getView: function() {
|
||||
return this.project.view;
|
||||
return this.project && this.project.view;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue