diff options
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 28 |
1 files changed, 27 insertions, 1 deletions
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 : { |