aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
authorJon Reid2012-04-17 15:30:44 -0700
committerJon Reid2012-04-17 15:30:44 -0700
commitd6f3f53a86f4efc45eabb519c94456731f6425e1 (patch)
tree1871ac3e2c26ef8b0d38b170006cb31d75e93586 /js/panels/Timeline/TimelinePanel.reel
parentdf1de25aaf7c7b552946dc0f616c488d6a980ea0 (diff)
downloadninja-d6f3f53a86f4efc45eabb519c94456731f6425e1.tar.gz
Timeline: Bug fix: changing layer name didn't save in some circumstances.
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js7
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;