diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 48bce268..0062affe 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -312,7 +312,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
312 | this.initTimeline(); | 312 | this.initTimeline(); |
313 | // Bind the event handler for the document change events | 313 | // Bind the event handler for the document change events |
314 | this.eventManager.addEventListener("onOpenDocument", this.handleDocumentChange.bind(this), false); | 314 | this.eventManager.addEventListener("onOpenDocument", this.handleDocumentChange.bind(this), false); |
315 | //this.eventManager.addEventListener("closeDocument", this.handleDocumentChange.bind(this), false); | 315 | this.eventManager.addEventListener("closeDocument", this.handleDocumentChange.bind(this), false); |
316 | this.eventManager.addEventListener("switchDocument", this.handleDocumentChange.bind(this), false); | 316 | this.eventManager.addEventListener("switchDocument", this.handleDocumentChange.bind(this), false); |
317 | 317 | ||
318 | // Bind drag and drop event handlers | 318 | // Bind drag and drop event handlers |
@@ -682,7 +682,10 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
682 | handleDocumentChange:{ | 682 | handleDocumentChange:{ |
683 | value:function (event) { | 683 | value:function (event) { |
684 | // Clear the timeline but not the cache | 684 | // Clear the timeline but not the cache |
685 | //console.log('TimelinePanel.handleDocumentChange') | 685 | //console.log('TimelinePanel.handleDocumentChange'); |
686 | if ((event.type === "closeDocument") && (this.application.ninja.documentController._documents.length > 0)) { | ||
687 | return; | ||
688 | } | ||
686 | this._boolCacheArrays = false; | 689 | this._boolCacheArrays = false; |
687 | this.clearTimelinePanel(); | 690 | this.clearTimelinePanel(); |
688 | this._boolCacheArrays = true; | 691 | this._boolCacheArrays = true; |