diff options
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r-- | js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js index 5de49cd6..b2683d30 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |||
@@ -221,7 +221,7 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
221 | 221 | ||
222 | if (this.propTweens.length < 1) { | 222 | if (this.propTweens.length < 1) { |
223 | 223 | ||
224 | selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID), | 224 | selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); |
225 | currentSelectedStyleIndex = this.getCurrentSelectedStyleIndex(selectIndex); | 225 | currentSelectedStyleIndex = this.getCurrentSelectedStyleIndex(selectIndex); |
226 | 226 | ||
227 | if (this.trackType == "style") { | 227 | if (this.trackType == "style") { |
@@ -265,8 +265,8 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
265 | } while (obj = obj.offsetParent); | 265 | } while (obj = obj.offsetParent); |
266 | } | 266 | } |
267 | return curleft; | 267 | return curleft; |
268 | } | 268 | }; |
269 | targetElementOffset = findXOffset(ev.currentTarget), | 269 | targetElementOffset = findXOffset(ev.currentTarget); |
270 | position = event.pageX - targetElementOffset; | 270 | position = event.pageX - targetElementOffset; |
271 | 271 | ||
272 | this.splitPropTweenAt(position - 18); | 272 | this.splitPropTweenAt(position - 18); |
@@ -437,7 +437,8 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
437 | newTween = {}; | 437 | newTween = {}; |
438 | newTween.tweenData = {}; | 438 | newTween.tweenData = {}; |
439 | 439 | ||
440 | styleLength = this.currentKeyframeRule[i].style.length, keyframeStyles = []; | 440 | styleLength = this.currentKeyframeRule[i].style.length; |
441 | keyframeStyles = []; | ||
441 | 442 | ||
442 | /* Traversering through the style of the currentKeyFrameRule of the animatedElement */ | 443 | /* Traversering through the style of the currentKeyFrameRule of the animatedElement */ |
443 | for (j = 0; j < styleLength; j++) { | 444 | for (j = 0; j < styleLength; j++) { |