aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-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(){