From 1ccc4d6dcff232b00763a5a49d7ad7a91f78ad3f Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 26 Apr 2012 13:24:51 -0700 Subject: Fixing the element model and adding get element Signed-off-by: Valerio Virgillito --- js/panels/properties.reel/properties.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/panels/properties.reel') 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, { handleSelectionChange: { value: function(event) { if(event.detail.isDocument) { + if(this.application.ninja.currentDocument.documentRoot.nodeName.toLowerCase() === "body") return; this.displayStageProperties(); } else { if(this.application.ninja.selectedElements.length === 1) { -- cgit v1.2.3 From bcfb200482c26b2bfc0d6577b1eb0de7a19a6762 Mon Sep 17 00:00:00 2001 From: John Mayhew Date: Thu, 26 Apr 2012 16:23:59 -0700 Subject: Removing all "module" declarations and replaced with "prototype" in preparation for montage converting to the new "prototype" format fully --- js/panels/properties.reel/properties.html | 26 ++++++---------- .../properties.reel/section.reel/section.html | 9 ++---- .../color-select.reel/color-select.html | 9 ++---- .../custom-rows/dual-row.reel/dual-row.html | 9 ++---- .../custom-rows/single-row.reel/single-row.html | 6 ++-- .../sections/custom.reel/custom.html | 9 ++---- .../position-and-size.reel/position-and-size.html | 15 +++------ .../sections/three-d-view.reel/three-d-view.html | 36 ++++++++-------------- 8 files changed, 40 insertions(+), 79 deletions(-) (limited to 'js/panels/properties.reel') diff --git a/js/panels/properties.reel/properties.html b/js/panels/properties.reel/properties.html index d212ae80..554d1477 100755 --- a/js/panels/properties.reel/properties.html +++ b/js/panels/properties.reel/properties.html @@ -1,4 +1,4 @@ - +