aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-03-01 23:58:41 -0800
committerJonathan Duran2012-03-01 23:58:41 -0800
commitef41a2897809d768e066ee3b4bfbb436ab20175c (patch)
treee46ba526f806a620b65e5053f2f57203c17bc360 /js/panels/Timeline/Tween.reel
parent8b08cbf68180187fe3913ea853adc0f65895fde5 (diff)
downloadninja-ef41a2897809d768e066ee3b4bfbb436ab20175c.tar.gz
Timeline bug fixes and cleanup
Deselect tweens on every selection change. Replace JS alerts with console logs. Cleanup obsolete models and references. Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index 729abd64..3a195f47 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -134,12 +134,6 @@ var Tween = exports.Tween = Montage.create(Component, {
134 } 134 }
135 }, 135 },
136 136
137 prepareForDraw:{
138 value:function () {
139
140 }
141 },
142
143 draw:{ 137 draw:{
144 value:function () { 138 value:function () {
145 this.element.style.left = this.spanPosition + "px"; 139 this.element.style.left = this.spanPosition + "px";
@@ -157,7 +151,7 @@ var Tween = exports.Tween = Montage.create(Component, {
157 if (event.detail.source && event.detail.source !== "tween") { 151 if (event.detail.source && event.detail.source !== "tween") {
158 // check for correct element selection 152 // check for correct element selection
159 if (this.application.ninja.selectedElements[0]._element != this.parentComponent.parentComponent.animatedElement) { 153 if (this.application.ninja.selectedElements[0]._element != this.parentComponent.parentComponent.animatedElement) {
160 alert("Wrong element selected for this keyframe track"); 154 console.log("Wrong element selected for this keyframe track");
161 } else { 155 } else {
162 // update tweenedProperties and tell containing track to update CSS rule 156 // update tweenedProperties and tell containing track to update CSS rule
163 // temp read only top and left. need to change to loop over event details for prop changes generically 157 // temp read only top and left. need to change to loop over event details for prop changes generically