aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/selection-controller.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-24 11:28:27 -0700
committerValerio Virgillito2012-05-24 11:28:27 -0700
commita8eb5c65a21af3bf8d8b8eb3e65b494b8bd9bc01 (patch)
treef6f2e044c646ea2749fafc29f1a1c3fabd2825ea /js/controllers/selection-controller.js
parent0ca1910df1c78116139664bf39a95cf0ec7c8dc8 (diff)
parentf801708f83aadfc688e69a244eb7cbaeca5d5e8d (diff)
downloadninja-a8eb5c65a21af3bf8d8b8eb3e65b494b8bd9bc01.tar.gz
Merge pull request #254 from mqg734/Dom-Architecture
Updates to stage code for handling multiple document workflow.
Diffstat (limited to 'js/controllers/selection-controller.js')
-rwxr-xr-xjs/controllers/selection-controller.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js
index 1092615a..214b9032 100755
--- a/js/controllers/selection-controller.js
+++ b/js/controllers/selection-controller.js
@@ -67,10 +67,9 @@ exports.SelectionController = Montage.create(Component, {
67 this._isDocument = true; 67 this._isDocument = true;
68 68
69 if(currentSelectionArray) { 69 if(currentSelectionArray) {
70 if(currentSelectionArray.length >= 1) { 70 this.application.ninja.selectedElements = currentSelectionArray;
71 if(currentSelectionArray.length) {
71 this._isDocument = false; 72 this._isDocument = false;
72
73 this.application.ninja.selectedElements = currentSelectionArray;
74 NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument}); 73 NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument});
75 } 74 }
76 } 75 }