diff options
author | Ananya Sen | 2012-02-29 11:46:19 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-29 11:46:19 -0800 |
commit | 03ea76700cb8bee3f4f58acf3e3503b0642d13fb (patch) | |
tree | 74995df24eb96461c6f7aa3287239ce550bab567 /js/controllers | |
parent | 7a9c2a91dfbbdd0cd7c79d81be5aeecd7887e7f1 (diff) | |
download | ninja-03ea76700cb8bee3f4f58acf3e3503b0642d13fb.tar.gz |
fixed selection which click after switching to a document
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/selection-controller.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js index 0f2a16e0..184c4899 100755 --- a/js/controllers/selection-controller.js +++ b/js/controllers/selection-controller.js | |||
@@ -92,12 +92,14 @@ exports.SelectionController = Montage.create(Component, { | |||
92 | handleSwitchDocument: { | 92 | handleSwitchDocument: { |
93 | value: function() { | 93 | value: function() { |
94 | this._selectedItems = this.application.ninja.selectedElements.slice(0); | 94 | this._selectedItems = this.application.ninja.selectedElements.slice(0); |
95 | if(this._selectedItems.length === 0){ | 95 | if(this._selectedItems.length === 0 ){ |
96 | this._isDocument = true; | 96 | this._isDocument = true; |
97 | }else{ | 97 | }else{ |
98 | this._isDocument = false; | 98 | this._isDocument = false; |
99 | } | 99 | } |
100 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); | 100 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); |
101 | |||
102 | this._selectionContainer = this.application.ninja.currentSelectedContainer; | ||
101 | } | 103 | } |
102 | }, | 104 | }, |
103 | 105 | ||