aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/selection-controller.js
diff options
context:
space:
mode:
authorAnanya Sen2012-03-07 14:26:37 -0800
committerAnanya Sen2012-03-07 14:26:37 -0800
commit250420d8c6154172b27fe53aff30e78c227e8a67 (patch)
treef4cad44f6145ad9f0fdba2667f04df166f9f1f37 /js/controllers/selection-controller.js
parent8020dc6e99e3bf0aad605f66a175bc2245da534b (diff)
downloadninja-250420d8c6154172b27fe53aff30e78c227e8a67.tar.gz
minor fixes
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers/selection-controller.js')
-rwxr-xr-xjs/controllers/selection-controller.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js
index eff9c91a..c713b6e5 100755
--- a/js/controllers/selection-controller.js
+++ b/js/controllers/selection-controller.js
@@ -100,20 +100,6 @@ exports.SelectionController = Montage.create(Component, {
100 this._isDocument = false; 100 this._isDocument = false;
101 } 101 }
102 NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); 102 NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} );
103
104 this._selectionContainer = this.application.ninja.currentSelectedContainer;
105 }
106 }
107 },
108
109 handleCloseDocument:{
110 value: function() {
111 //clear selections if all documents are closed
112 if(this.application.ninja.documentController._documents.length === 0){
113 this._selectedItems.length =0;
114 this.application.ninja.selectedElements.length =0;
115 this._isDocument = true;
116 NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} );
117 } 103 }
118 } 104 }
119 }, 105 },