aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 9c782787..087bf3cd 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -397,9 +397,22 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
397 }, 397 },
398 398
399 handleCloseDocument: { 399 handleCloseDocument: {
400 value: function(event) { 400 value: function(event) {
401 this.clearTimelinePanel(); 401 if(this.application.ninja.documentController._activeDocument){
402 } 402 this._boolCacheArrays = false;
403 this.clearTimelinePanel();
404 this._boolCacheArrays = true;
405 this._bindDocumentEvents();
406
407 this.hashInstance = this.createLayerHashTable();
408 this.hashLayerNumber = this.createLayerNumberHash();
409 this.hashElementMapToLayer = this.createElementMapToLayer();
410 this.initTimelineForDocument();
411 }else{
412 this.clearTimelinePanel();
413 }
414
415 }
403 }, 416 },
404 417
405 handleSwitchDocument : { 418 handleSwitchDocument : {