diff options
author | Jonathan Duran | 2012-03-13 09:15:37 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-03-13 09:15:37 -0700 |
commit | e8f207dc50ad942ee8c1c1db6b146c0110ce3216 (patch) | |
tree | dc737325373c7ce405c4dd3e23fca5a1d58eefe2 /js | |
parent | 86eb7b5e89bebb25f80512c805b8e5015462fbed (diff) | |
download | ninja-e8f207dc50ad942ee8c1c1db6b146c0110ce3216.tar.gz |
Fix unassigned track element on document switch
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 18df20c2..c6b67c9c 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -394,6 +394,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
394 | draw:{ | 394 | draw:{ |
395 | value:function () { | 395 | value:function () { |
396 | this.ninjaStylesContoller = this.application.ninja.stylesController; | 396 | this.ninjaStylesContoller = this.application.ninja.stylesController; |
397 | var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); | ||
398 | if(this.application.ninja.timeline.arrLayers[selectedIndex].layerData.elementsList[0]){ | ||
399 | this.animatedElement = this.application.ninja.timeline.arrLayers[selectedIndex].layerData.elementsList[0]; | ||
400 | } | ||
397 | } | 401 | } |
398 | }, | 402 | }, |
399 | 403 | ||