diff options
author | Ananya Sen | 2012-03-07 14:26:37 -0800 |
---|---|---|
committer | Ananya Sen | 2012-03-07 14:26:37 -0800 |
commit | 250420d8c6154172b27fe53aff30e78c227e8a67 (patch) | |
tree | f4cad44f6145ad9f0fdba2667f04df166f9f1f37 /js/controllers/selection-controller.js | |
parent | 8020dc6e99e3bf0aad605f66a175bc2245da534b (diff) | |
download | ninja-250420d8c6154172b27fe53aff30e78c227e8a67.tar.gz |
minor fixes
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers/selection-controller.js')
-rwxr-xr-x | js/controllers/selection-controller.js | 14 |
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 | }, |