aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel
diff options
context:
space:
mode:
authorJon Reid2012-06-15 10:10:41 -0700
committerJon Reid2012-06-15 10:10:41 -0700
commit526ac54f73d53e1e2a3d6a4dbf4f9992c143baf7 (patch)
tree65939e59615aaa10a7db77211e71616ad531bd0e /js/panels/Timeline/TimelineTrack.reel
parentb5b760ee82e5cc4da176914983a6002cbf86c11a (diff)
parent5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff)
downloadninja-526ac54f73d53e1e2a3d6a4dbf4f9992c143baf7.tar.gz
Merge remote-tracking branch 'ninja-internal/master' into test-merge
Conflicts: js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html1
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js28
2 files changed, 28 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
index 502c455b..a8ef0d6b 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
@@ -19,6 +19,7 @@
19 "tween": {"@" : "tween"}, 19 "tween": {"@" : "tween"},
20 "mainCollapser" : {"@" : "mainCollapser"}, 20 "mainCollapser" : {"@" : "mainCollapser"},
21 "positionCollapser" : {"@" : "positionCollapser"}, 21 "positionCollapser" : {"@" : "positionCollapser"},
22 "transformCollapser" : {"@" : "transformCollapser"},
22 "styleCollapser" : {"@" : "styleCollapser"} 23 "styleCollapser" : {"@" : "styleCollapser"}
23 } 24 }
24 }, 25 },
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index 11c27ce3..fc88b779 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -167,7 +167,11 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
167 }, 167 },
168 set: function(newVal) { 168 set: function(newVal) {
169 this._arrPositionTracks = newVal; 169 this._arrPositionTracks = newVal;
170 this.trackData.arrPositionTracks = newVal; 170 if (typeof(this.trackData) === "undefined") {
171 //this.createTrackData();
172 }
173 this.trackData.arrPositionTracks = newVal;
174
171 } 175 }
172 }, 176 },
173 _positionTracksRepetition: { 177 _positionTracksRepetition: {
@@ -438,6 +442,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
438 }, 442 },
439 443
440 trackData:{ 444 trackData:{
445 serializable: true,
441 get:function(){ 446 get:function(){
442 return this._trackData; 447 return this._trackData;
443 }, 448 },
@@ -477,6 +482,27 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
477 this.needsDraw = true; 482 this.needsDraw = true;
478 } 483 }
479 }, 484 },
485 createTrackData: {
486 value: function() {
487 tempData = {};
488 tempData.bypassAnimation = this.bypassAnimation;
489 tempData.trackID = this.layerID;
490 tempData.tweens = this.tweens;
491 tempData.animatedElement = this.animatedElement;
492 tempData.arrStyleTracks = this.arrStyleTracks;
493 tempData.isTrackAnimated = this.isTrackAnimated;
494 tempData.trackDuration = this.trackDuration;
495 tempData.animationName = this.animationName;
496 tempData.currentKeyframeRule = this.currentKeyframeRule;
497 tempData.isMainCollapsed = this.isMainCollapsed;
498 tempData.isPositionCollapsed = this.isPositionCollapsed;
499 tempData.isTransformCollapsed = this.isTransformCollapsed;
500 tempData.isStyleCollapsed = this.isStyleCollapsed;
501 tempData.trackPosition = this.trackPosition;
502 tempData.isVisible = this.isVisible;
503 this.trackData = tempData;
504 }
505 },
480 506
481 // Data binding observation point and trigger method 507 // Data binding observation point and trigger method
482 _bindingPoint : { 508 _bindingPoint : {