|
149 | 149 | */ |
150 | 150 | autoplay: false, |
151 | 151 | animation: false, |
152 | | - created: function() { |
| 152 | + observe: { |
| 153 | + target: 'asyncApply', |
| 154 | + keyframes: 'asyncApply', |
| 155 | + sample: 'asyncApply', |
| 156 | + composite: 'asyncApply', |
| 157 | + duration: 'asyncApply', |
| 158 | + fillMode: 'asyncApply', |
| 159 | + easing: 'asyncApply', |
| 160 | + iterationCount: 'asyncApply', |
| 161 | + delay: 'asyncApply', |
| 162 | + direction: 'asyncApply', |
| 163 | + autoplay: 'asyncApply' |
| 164 | + }, |
| 165 | + ready: function() { |
153 | 166 | this.asyncApply(); |
154 | 167 | }, |
155 | 168 | /** |
|
176 | 189 | this.cancelApply(); |
177 | 190 | this.animation = null; |
178 | 191 | this.animation = this.makeAnimation(); |
| 192 | + console.log('apply', this.animation); |
179 | 193 | if (this.autoplay && this.animation) { |
180 | 194 | this.play(); |
181 | 195 | } |
|
202 | 216 | // in ShadowDOM the sender becomes the shadow host. |
203 | 217 | this.fire('animationchange', this); |
204 | 218 | }, |
205 | | - targetChanged: function() { |
206 | | - this.asyncApply(); |
207 | | - }, |
208 | 219 | targetSelectorChanged: function() { |
209 | 220 | if (this.targetSelector) { |
210 | 221 | this.target = findTarget(this.targetSelector, this); |
211 | 222 | } |
212 | 223 | }, |
213 | | - keyframesChanged: function() { |
214 | | - this.asyncApply(); |
215 | | - }, |
216 | | - sampleChanged: function() { |
217 | | - this.asyncApply(); |
218 | | - }, |
219 | | - compositeChanged: function() { |
220 | | - this.asyncApply(); |
221 | | - }, |
222 | | - durationChanged: function() { |
223 | | - this.asyncApply(); |
224 | | - }, |
225 | | - fillModeChanged: function() { |
226 | | - this.asyncApply(); |
227 | | - }, |
228 | | - easingChanged: function() { |
229 | | - this.asyncApply(); |
230 | | - }, |
231 | | - iterationCountChanged: function() { |
232 | | - this.asyncApply(); |
233 | | - }, |
234 | | - delayChanged: function() { |
235 | | - this.asyncApply(); |
236 | | - }, |
237 | | - directionChanged: function() { |
238 | | - this.asyncApply(); |
239 | | - }, |
240 | | - autoplayChanged: function() { |
241 | | - this.asyncApply(); |
242 | | - }, |
243 | 224 | get timingProps() { |
244 | 225 | var props = {}; |
245 | 226 | var timing = { |
|
0 commit comments