aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel/Tween.js
diff options
context:
space:
mode:
authorJonathan Duran2012-07-02 13:45:28 -0700
committerJonathan Duran2012-07-02 13:45:28 -0700
commit0ea5607c3760852b1fe63ad568b4db064129955b (patch)
treeb4c52c1d00537c9274c6bfa7eeb8868b568519ef /js/panels/Timeline/Tween.reel/Tween.js
parentff4ac4add41982414794dd94cab478cf75bd778a (diff)
downloadninja-0ea5607c3760852b1fe63ad568b4db064129955b.tar.gz
Fix performance bug when moving between nested levels
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index ae8acc57..0d189fba 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -170,9 +170,26 @@ var Tween = exports.Tween = Montage.create(Component, {
170 170
171 }, 171 },
172 172
173 _initSelect:{
174 value: null
175 },
176 initSelect:{
177 serializable:true,
178 get:function () {
179 return this._initSelect;
180 },
181 set:function (newVal) {
182 this._initSelect = newVal;
183 this.tweenData.initSelect = newVal;
184 }
185 },
186
173 prepareForDraw:{ 187 prepareForDraw:{
174 value:function(){ 188 value:function(){
175 this.keyframe.selectKeyframe(); 189 if(this.initSelect){
190 this.keyframe.selectKeyframe();
191 this.initSelect = false;
192 }
176 } 193 }
177 }, 194 },
178 195
@@ -200,6 +217,7 @@ var Tween = exports.Tween = Montage.create(Component, {
200 this.tweenedProperties = this.tweenData.tweenedProperties; 217 this.tweenedProperties = this.tweenData.tweenedProperties;
201 this.isTweenAnimated = this.tweenData.isTweenAnimated; 218 this.isTweenAnimated = this.tweenData.isTweenAnimated;
202 this.easing = this.tweenData.easing; 219 this.easing = this.tweenData.easing;
220 this.initSelect = this.tweenData.initSelect;
203 this.needsDraw = true; 221 this.needsDraw = true;
204 } 222 }
205 }, 223 },