diff options
author | Jose Antonio Marquez Russo | 2012-03-08 10:49:06 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-03-08 10:49:06 -0800 |
commit | 85f21e020ac281e8e545df1cf269034de99a00b1 (patch) | |
tree | 441834fa8b02b1cc2a970210020d27e06d2c99be /js/panels/Timeline/Tween.reel/Tween.js | |
parent | d9813946dc28d8c28033a68b68300b9d9eda115c (diff) | |
parent | 11a6f18e274d7232cdbb8f6e9e65e0a5ab756451 (diff) | |
download | ninja-85f21e020ac281e8e545df1cf269034de99a00b1.tar.gz |
Merge pull request #29 from ericmueller/integration
Integration
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 729abd64..6ff38bef 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 |
@@ -181,7 +175,7 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
181 | 175 | ||
182 | // select the containing layer | 176 | // select the containing layer |
183 | var selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.parentComponent.parentComponent.trackID); | 177 | var selectIndex = this.application.ninja.timeline.getLayerIndexByID(this.parentComponent.parentComponent.trackID); |
184 | this.application.ninja.timeline.selectLayer(selectIndex); | 178 | this.application.ninja.timeline.selectLayer(selectIndex, true); |
185 | 179 | ||
186 | // tell timeline to deselect all other tweens and push this one as the currentSelectedTweens in timeline | 180 | // tell timeline to deselect all other tweens and push this one as the currentSelectedTweens in timeline |
187 | this.application.ninja.timeline.deselectTweens(); | 181 | this.application.ninja.timeline.deselectTweens(); |