aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 290dd6c1..a3965eb2 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -487,6 +487,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
487 returnObj.layerData.isVisible = true; 487 returnObj.layerData.isVisible = true;
488 returnObj.layerData.docUUID = this.application.ninja.currentDocument._uuid; 488 returnObj.layerData.docUUID = this.application.ninja.currentDocument._uuid;
489 returnObj.layerData.isTrackAnimated = false; 489 returnObj.layerData.isTrackAnimated = false;
490 returnObj.layerData.triggerBinding = false;
490 returnObj.parentElementUUID = null; 491 returnObj.parentElementUUID = null;
491 returnObj.parentElement = null; 492 returnObj.parentElement = null;
492 493
@@ -679,13 +680,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
679 680
680 // That's all we need to do for a brand new file. 681 // That's all we need to do for a brand new file.
681 // But what if we're opening an existing document? 682 // But what if we're opening an existing document?
682 if (!this.application.ninja.documentController.creatingNewFile) { 683 if (!this.application.ninja.documentController.creatingNewFile && this.application.ninja.currentDocument.currentView !== "code") {
683 // Opening an existing document. If it has DOM elements we need to restore their timeline info 684 // Opening an existing document. If it has DOM elements we need to restore their timeline info
684 if (this.application.ninja.currentDocument.documentRoot.children[0]) { 685 if (this.application.ninja.currentDocument.model.documentRoot.children[0]) {
685 // Yes, it has DOM elements. Loop through them and create a new object for each. 686 // Yes, it has DOM elements. Loop through them and create a new object for each.
686 for (myIndex = 0; this.application.ninja.currentDocument.documentRoot.children[myIndex]; myIndex++) { 687 for (myIndex = 0; this.application.ninja.currentDocument.model.documentRoot.children[myIndex]; myIndex++) {
687 this._openDoc = true; 688 this._openDoc = true;
688 this.restoreLayer(this.application.ninja.currentDocument.documentRoot.children[myIndex]); 689 this.restoreLayer(this.application.ninja.currentDocument.model.documentRoot.children[myIndex]);
689 } 690 }
690 } 691 }
691 } 692 }
@@ -1522,12 +1523,8 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1522 // Trigger the layer/track data binding 1523 // Trigger the layer/track data binding
1523 triggerLayerBinding : { 1524 triggerLayerBinding : {
1524 value: function(intIndex) { 1525 value: function(intIndex) {
1525 if (this.arrLayers[intIndex].layerData.triggerBinding === true) { 1526 this.arrLayers[intIndex].layerData.triggerBinding = !this.arrLayers[intIndex].layerData.triggerBinding;
1526 this.arrLayers[intIndex].layerData.triggerBinding = false; 1527 }
1527 } else {
1528 this.arrLayers[intIndex].layerData.triggerBinding = true;
1529 }
1530 }
1531 }, 1528 },
1532 1529
1533 handleLayerDragStart : { 1530 handleLayerDragStart : {