From b5b760ee82e5cc4da176914983a6002cbf86c11a Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Fri, 15 Jun 2012 02:26:56 -0700 Subject: Remove obsolete absolute/relative options from timeline config menu Signed-off-by: Jonathan Duran --- .../Timeline/TimelinePanel.reel/TimelinePanel.html | 5 ----- .../Timeline/TimelinePanel.reel/TimelinePanel.js | 22 ---------------------- 2 files changed, 27 deletions(-) (limited to 'js') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html index 5c957619..9e2bacd5 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html @@ -34,8 +34,6 @@ "container_layers" : {"#" : "container-layers"}, "container_tracks" : {"#" : "container-tracks"}, "timeline_disabler" : {"#" : "timeline-disabler"}, - "checkable_relative" : {"#" : "checkable_relative"}, - "checkable_absolute" : {"#" : "checkable_absolute"}, "checkable_animated" : {"#" : "checkable_animated"}, "tl_configbutton" : {"#" : "tl-configbutton"} } @@ -179,9 +177,6 @@
Master Layer
-
Use relative positioning
-
Use absolute positioning
-
Show only animated layers
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 7f8d421d..509ec7b1 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -483,8 +483,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { // Bind the handlers for the config menu this.checkable_animated.addEventListener("click", this.handleAnimatedClick.bind(this), false); - this.checkable_relative.addEventListener("click", this.handleRelativeClick.bind(this), false); - this.checkable_absolute.addEventListener("click", this.handleAbsoluteClick.bind(this), false); this.tl_configbutton.addEventListener("click", this.handleConfigButtonClick.bind(this), false); document.addEventListener("click", this.handleDocumentClick.bind(this), false); @@ -732,8 +730,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { // Bind the handlers for the config menu this.checkable_animated.addEventListener("click", this.handleAnimatedClick.bind(this), false); - this.checkable_relative.addEventListener("click", this.handleRelativeClick.bind(this), false); - this.checkable_absolute.addEventListener("click", this.handleAbsoluteClick.bind(this), false); this.tl_configbutton.addEventListener("click", this.handleConfigButtonClick.bind(this), false); document.addEventListener("click", this.handleDocumentClick.bind(this), false); @@ -1592,24 +1588,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, - handleRelativeClick: { - value: function(event) { - if (!event.currentTarget.classList.contains("checked")) { - this.handleCheckableClick(event); - } - this.checkable_absolute.classList.remove("checked"); - this.useAbsolutePosition = false; - } - }, - handleAbsoluteClick: { - value: function(event) { - if (!event.currentTarget.classList.contains("checked")) { - this.handleCheckableClick(event); - } - this.checkable_relative.classList.remove("checked"); - this.useAbsolutePosition = true; - } - }, handleCheckableClick: { value: function(event) { if (event.currentTarget.classList.contains("checked")) { -- cgit v1.2.3