diff options
Diffstat (limited to 'js/code-editor/ui')
-rw-r--r-- | js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js b/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js index 70d033fb..2ca6118b 100644 --- a/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js +++ b/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js | |||
@@ -53,7 +53,7 @@ exports.CodeEditorViewOptions = Montage.create(Component, { | |||
53 | 53 | ||
54 | if(!value || (this._currentDocument.currentView === "design")) { | 54 | if(!value || (this._currentDocument.currentView === "design")) { |
55 | this.visible = false; | 55 | this.visible = false; |
56 | } else if(this._currentDocument.currentView === "code") { | 56 | } else if(this._currentDocument && this._currentDocument.currentView === "code") { |
57 | 57 | ||
58 | if(this._currentDocument.model.views.design){//code view of design document | 58 | if(this._currentDocument.model.views.design){//code view of design document |
59 | this.application.ninja.editorViewOptions.visible = false; | 59 | this.application.ninja.editorViewOptions.visible = false; |