aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-06-11 10:14:57 -0700
committerJonathan Duran2012-06-11 10:14:57 -0700
commit306d72f1f18f4e6ea90146bc6723517fb931ea7d (patch)
treebe47c6c8783da6aeae667320b8bdda63200d5ea1 /js/panels/Timeline/TimelinePanel.reel
parent6a3b09433b8d5894a0f2a6c00748825727c2d991 (diff)
downloadninja-306d72f1f18f4e6ea90146bc6723517fb931ea7d.tar.gz
Squashed commit of the following:
commit 8e98ce012f55576ddb979969a3a1d834301af0c7 Author: Jon Reid <tjh487@motorola.com> Date: Fri Jun 8 18:08:38 2012 -0700 Timeline: New feature: Only one easing menu can be open at a time. Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index a902d282..8276f878 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -131,6 +131,18 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
131 _areTracksScrolling: { 131 _areTracksScrolling: {
132 value: false 132 value: false
133 }, 133 },
134
135 _currentOpenSpanMenu: {
136 value: false
137 },
138 currentOpenSpanMenu: {
139 get: function() {
140 return this._currentOpenSpanMenu;
141 },
142 set: function(newVal) {
143 this._currentOpenSpanMenu = newVal;
144 }
145 },
134 146
135 // Set to false to skip array caching array sets in currentDocument 147 // Set to false to skip array caching array sets in currentDocument
136 _boolCacheArrays:{ 148 _boolCacheArrays:{
@@ -1511,6 +1523,11 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1511 if (this.tl_configbutton.classList.contains("checked")) { 1523 if (this.tl_configbutton.classList.contains("checked")) {
1512 this.tl_configbutton.classList.remove("checked"); 1524 this.tl_configbutton.classList.remove("checked");
1513 } 1525 }
1526 //
1527 if (this.currentOpenSpanMenu !== false) {
1528 this.currentOpenSpanMenu.hideEasingMenu();
1529 this.currentOpenSpanMenu = false;
1530 }
1514 } 1531 }
1515 }, 1532 },
1516 1533