From 4422e9decf86cb0de707398c54acfb68a3728b32 Mon Sep 17 00:00:00 2001
From: Kruti Shah
Date: Wed, 29 Feb 2012 12:41:23 -0800
Subject: Timeline:Revert back to earlier code

Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
---
 js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index 7394d42e..f8f4f6b8 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -476,9 +476,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
                     this.nextKeyframe = 0;
 
                     this.currentKeyframeRule = this.application.ninja.stylesController.getAnimationRuleWithName(this.animationName, this.application.ninja.currentDocument._document);
-                    var currentKeyFrameRuleLength = this.currentKeyframeRule.length;
-                    
-                    for (i =0; i<currentKeyFrameRuleLength ;i++) {
+
+                    for (i =0; this.currentKeyframeRule[i] ;i++) {
                         var newTween = {};
 
                         offsetAttribute = this.currentKeyframeRule[i].cssText.split(" ");
-- 
cgit v1.2.3