aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorJon Reid2012-02-24 17:26:08 -0800
committerJon Reid2012-02-24 17:26:08 -0800
commitf14bc1ace048e46cbcb7148dbe37a5d2065a3779 (patch)
treeef3030d561a0bef731f84078d5ece503cd60f37e /js/panels/Timeline/TimelinePanel.reel
parent1c4e8fbab587e589f348223847d6aac5c2df416b (diff)
downloadninja-f14bc1ace048e46cbcb7148dbe37a5d2065a3779.tar.gz
Timeline: Add grids to property tracks. First take on clearTimeline method on TimelinePanel class.
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 5f484cdb..2143dafd 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -242,6 +242,24 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
242 _firstLayerDraw = true; 242 _firstLayerDraw = true;
243 } 243 }
244 }, 244 },
245
246 clearTimelinePanel : {
247 value: function() {
248 console.log('clearing timeline...')
249 this.arrTracks = null;
250 this.arrLayers = null;
251 this.currentLayerNumber = 0;
252 this.currentLayerSelected = null;
253 this.currentTrackSelected = null;
254 this.selectedKeyframes = [];
255 this.selectedTweens = [];
256 this._captureSelection = false;
257 this._openDoc = false;
258 this.end_hottext.value = 25;
259 this.updateTrackContainerWidth();
260 this.needsDraw = true;
261 }
262 },
245 263
246 updateTrackContainerWidth:{ 264 updateTrackContainerWidth:{
247 value: function(){ 265 value: function(){