diff options
author | Jonathan Duran | 2012-03-14 09:14:50 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-03-14 09:14:50 -0700 |
commit | af93c604649d99fc81dc92b042794b0c60fc4f2d (patch) | |
tree | 89c05a303ab879e21b2ec0e234fdfb7e09a1b8de /js/panels/Timeline | |
parent | e065244ac75d1d0f25fd5c75cb58e714a13fe16b (diff) | |
download | ninja-af93c604649d99fc81dc92b042794b0c60fc4f2d.tar.gz |
Optimize Tween component needsDraw calls
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 5 |
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 | ||