aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/layout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js
index a94dd10c..de4c67c1 100755
--- a/js/stage/layout.js
+++ b/js/stage/layout.js
@@ -98,6 +98,11 @@ exports.Layout = Montage.create(Component, {
98 98
99 handleSelectionChange: { 99 handleSelectionChange: {
100 value: function(event) { 100 value: function(event) {
101
102 if(this.application.ninja.documentController.activeDocument === null){
103 return;
104 }
105
101 // Make an array copy of the line node list which is not an array like object 106 // Make an array copy of the line node list which is not an array like object
102 this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); 107 this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0);
103 108