aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKruti Shah2012-03-07 16:19:05 -0800
committerKruti Shah2012-03-07 16:19:05 -0800
commit1c61c69265b9c0230b834c0d4d7c78a11f9d5b19 (patch)
tree33564a6229bd249feda6559e51100bdb514dae7e /js
parent27f0a1813a0a025448c36b458d8a441a1459bf9a (diff)
downloadninja-1c61c69265b9c0230b834c0d4d7c78a11f9d5b19.tar.gz
Timeline Bug Fix: IKNINJA-1283
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
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 : {