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') 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 --- .../CSSPanel/CSSPanelBase.reel/CSSPanelBase.html | 11 ++--- .../ComputedStyleSubPanel.html | 5 +-- .../materials-library-panel.html | 17 +++----- .../materials-popup.reel/materials-popup.html | 18 +++------ js/panels/Panel.reel/Panel.html | 24 ++++------- js/panels/PanelContainer.reel/PanelContainer.html | 24 ++++------- .../projectpanelbase.reel/projectpanelbase.html | 5 +-- js/panels/Timeline/Keyframe.reel/Keyframe.html | 5 +-- js/panels/Timeline/Layer.reel/Layer.html | 47 ++++++++-------------- .../Timeline/PropertyTrack.reel/PropertyTrack.html | 5 +-- js/panels/Timeline/Span.reel/Span.html | 5 +-- js/panels/Timeline/Style.reel/Style.html | 14 +++---- .../Timeline/TimelinePanel.reel/TimelinePanel.html | 23 ++++------- .../Timeline/TimelineTrack.reel/TimelineTrack.html | 38 ++++++----------- js/panels/Timeline/Track.reel/Track.html | 11 ++--- .../Timeline/TrackSpacer.reel/TrackSpacer.html | 5 +-- js/panels/Timeline/Tween.reel/Tween.html | 11 ++--- .../color/colorchippopup.reel/colorchippopup.html | 5 +-- .../color/colorpanelbase.reel/colorpanelbase.html | 5 +-- .../colorpanelpopup.reel/colorpanelpopup.html | 5 +-- .../color/colortoolbar.reel/colortoolbar.html | 5 +-- .../components-panel.reel/components-panel.html | 14 +++---- .../animations-presets.html | 14 +++---- js/panels/presets/content.reel/content.html | 17 +++----- .../presets/style-presets.reel/style-presets.html | 14 +++---- .../transitions-presets.html | 14 +++---- 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 ++++++----------- 34 files changed, 168 insertions(+), 312 deletions(-) (limited to 'js/panels') diff --git a/js/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.html b/js/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.html index 98b2b61d..c62b2b23 100755 --- a/js/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.html +++ b/js/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.html @@ -1,4 +1,4 @@ - +