aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
diff options
context:
space:
mode:
authorJon Reid2012-02-23 17:06:48 -0800
committerJon Reid2012-02-23 17:06:48 -0800
commit0b18fb2fef124a26204d5dba90cd82c975b69df3 (patch)
treea7000ef9547b2c95ba5706b1a378459e4bbcfb6a /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
parent0327073eff62d4b800206ba0f3ba2140ae5da8bc (diff)
downloadninja-0b18fb2fef124a26204d5dba90cd82c975b69df3.tar.gz
Timeline: Add hottext fields to layers and serialize them throughout.
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index fddfd170..67dbbced 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -358,10 +358,12 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
358 358
359 didDraw:{ 359 didDraw:{
360 value:function () { 360 value:function () {
361 if (this._openDocRedrawCheck) { 361 if(this.application.ninja.currentDocument.documentRoot.children[0]){
362 this.retrieveStoredTweens(); 362 if (this._openDocRedrawCheck) {
363 this._openDocRedrawCheck = false; 363 this.retrieveStoredTweens();
364 } 364 this._openDocRedrawCheck = false;
365 }
366 }
365 } 367 }
366 }, 368 },
367 369
@@ -542,7 +544,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
542 value:function () { 544 value:function () {
543 var that = this; 545 var that = this;
544 546
545 this.arrPositionTracks = [0, 1, 2]; 547 this.arrPositionTracks = [0, 1];
546 this.arrTransformTracks = [0, 1, 2, 3, 4]; 548 this.arrTransformTracks = [0, 1, 2, 3, 4];
547 549
548 this.label = this.element.querySelector(".label-main"); 550 this.label = this.element.querySelector(".label-main");