diff options
author | Jose Antonio Marquez | 2012-03-06 16:19:59 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-06 16:19:59 -0800 |
commit | f6a60f50ca9cd09713baa27f2990eda9346496fc (patch) | |
tree | 3975b1aa412e5b8c377accfe15536622544d6826 /js/controllers | |
parent | 7271c25bf34917b1751f433d284f21485057425b (diff) | |
parent | 2e3943a8f751ec572066f168b58464c24b9f29e5 (diff) | |
download | ninja-f6a60f50ca9cd09713baa27f2990eda9346496fc.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Conflicts:
js/controllers/selection-controller.js
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/selection-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js index 08eb018f..75968d4a 100755 --- a/js/controllers/selection-controller.js +++ b/js/controllers/selection-controller.js | |||
@@ -76,7 +76,7 @@ exports.SelectionController = Montage.create(Component, { | |||
76 | 76 | ||
77 | 77 | ||
78 | this.application.ninja.selectedElements = currentSelectionArray; | 78 | this.application.ninja.selectedElements = currentSelectionArray; |
79 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); | 79 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument}); |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
@@ -92,12 +92,12 @@ 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 | 101 | ||
102 | this._selectionContainer = this.application.ninja.currentSelectedContainer; | 102 | this._selectionContainer = this.application.ninja.currentSelectedContainer; |
103 | } | 103 | } |
@@ -139,7 +139,7 @@ exports.SelectionController = Montage.create(Component, { | |||
139 | value: function(event) { | 139 | value: function(event) { |
140 | this.application.ninja.selectedElements = []; | 140 | this.application.ninja.selectedElements = []; |
141 | this._isDocument = true; | 141 | this._isDocument = true; |
142 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); | 142 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument}); |
143 | } | 143 | } |
144 | }, | 144 | }, |
145 | 145 | ||