aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorJonathan Duran2012-03-14 09:14:50 -0700
committerJonathan Duran2012-03-14 09:14:50 -0700
commitaf93c604649d99fc81dc92b042794b0c60fc4f2d (patch)
tree89c05a303ab879e21b2ec0e234fdfb7e09a1b8de /js/panels
parente065244ac75d1d0f25fd5c75cb58e714a13fe16b (diff)
downloadninja-af93c604649d99fc81dc92b042794b0c60fc4f2d.tar.gz
Optimize Tween component needsDraw calls
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index 77c0dfa8..2b308d9a 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -44,7 +44,6 @@ var Tween = exports.Tween = Montage.create(Component, {
44 }, 44 },
45 set: function(value){ 45 set: function(value){
46 this._spanWidth = value; 46 this._spanWidth = value;
47 this.needsDraw = true;
48 } 47 }
49 }, 48 },
50 49
@@ -59,7 +58,6 @@ var Tween = exports.Tween = Montage.create(Component, {
59 }, 58 },
60 set:function (value) { 59 set:function (value) {
61 this._spanPosition = value; 60 this._spanPosition = value;
62 this.needsDraw = true;
63 } 61 }
64 }, 62 },
65 63
@@ -74,7 +72,6 @@ var Tween = exports.Tween = Montage.create(Component, {
74 }, 72 },
75 set:function (value) { 73 set:function (value) {
76 this._keyFramePosition = value; 74 this._keyFramePosition = value;
77 this.needsDraw = true;
78 } 75 }
79 }, 76 },
80 77
@@ -133,7 +130,6 @@ var Tween = exports.Tween = Montage.create(Component, {
133 }, 130 },
134 set:function (value) { 131 set:function (value) {
135 this._isTweenAnimated = value; 132 this._isTweenAnimated = value;
136 this.needsDraw = true;
137 } 133 }
138 }, 134 },
139 135
@@ -157,6 +153,7 @@ var Tween = exports.Tween = Montage.create(Component, {
157 this.tweenID = this.tweenData.tweenID; 153 this.tweenID = this.tweenData.tweenID;
158 this.tweenedProperties = this.tweenData.tweenedProperties; 154 this.tweenedProperties = this.tweenData.tweenedProperties;
159 this.isTweenAnimated = this.tweenData.isTweenAnimated; 155 this.isTweenAnimated = this.tweenData.isTweenAnimated;
156 this.needsDraw = true;
160 } 157 }
161 }, 158 },
162 159