aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-26 13:24:51 -0700
committerValerio Virgillito2012-04-26 13:24:51 -0700
commit1ccc4d6dcff232b00763a5a49d7ad7a91f78ad3f (patch)
tree3d1f74c243cb2d12325ffba3960a63ff627e7e2c /js/panels/properties.reel
parentd0893407d35f4e05bbe2fd41c2b70151984fe481 (diff)
downloadninja-1ccc4d6dcff232b00763a5a49d7ad7a91f78ad3f.tar.gz
Fixing the element model and adding get element
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-xjs/panels/properties.reel/properties.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js
index b21014c1..ee90cd64 100755
--- a/js/panels/properties.reel/properties.js
+++ b/js/panels/properties.reel/properties.js
@@ -174,6 +174,7 @@ exports.Properties = Montage.create(Component, {
174 handleSelectionChange: { 174 handleSelectionChange: {
175 value: function(event) { 175 value: function(event) {
176 if(event.detail.isDocument) { 176 if(event.detail.isDocument) {
177 if(this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() === "body") return;
177 this.displayStageProperties(); 178 this.displayStageProperties();
178 } else { 179 } else {
179 if(this.application.ninja.selectedElements.length === 1) { 180 if(this.application.ninja.selectedElements.length === 1) {