diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 0490aa49..28363398 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -448,6 +448,32 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
448 | 448 | ||
449 | } | 449 | } |
450 | }, | 450 | }, |
451 | |||
452 | handleCloseDocument: { | ||
453 | value: function(event) { | ||
454 | if(this.application.ninja.documentController._activeDocument){ | ||
455 | this._boolCacheArrays = false; | ||
456 | this.clearTimelinePanel(); | ||
457 | this._boolCacheArrays = true; | ||
458 | this._bindDocumentEvents(); | ||
459 | |||
460 | this.hashInstance = this.createLayerHashTable(); | ||
461 | this.hashLayerNumber = this.createLayerNumberHash(); | ||
462 | this.hashElementMapToLayer = this.createElementMapToLayer(); | ||
463 | this.initTimelineForDocument(); | ||
464 | }else{ | ||
465 | this.clearTimelinePanel(); | ||
466 | } | ||
467 | |||
468 | } | ||
469 | }, | ||
470 | |||
471 | handleSwitchDocument : { | ||
472 | value: function(event) { | ||
473 | // Handle document change. | ||
474 | this.handleOnOpenDocument(); | ||
475 | } | ||
476 | }, | ||
451 | 477 | ||
452 | updateTrackContainerWidth:{ | 478 | updateTrackContainerWidth:{ |
453 | value: function(){ | 479 | value: function(){ |