| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> | 9 --> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 config.timing.delay += nodeDelay; | 61 config.timing.delay += nodeDelay; |
| 62 config.node = node; | 62 config.node = node; |
| 63 | 63 |
| 64 var animation = document.createElement(config.animation); | 64 var animation = document.createElement(config.animation); |
| 65 if (animation.isNeonAnimation) { | 65 if (animation.isNeonAnimation) { |
| 66 var effect = animation.configure(config); | 66 var effect = animation.configure(config); |
| 67 | 67 |
| 68 this._animations.push(animation); | 68 this._animations.push(animation); |
| 69 effects.push(effect); | 69 effects.push(effect); |
| 70 } else { | 70 } else { |
| 71 Polymer.Base._warn(this.is + ':', config.animation, 'not found!'); | 71 console.warn(this.is + ':', config.animation, 'not found!'); |
| 72 abortedConfigure = true; | 72 abortedConfigure = true; |
| 73 break; | 73 break; |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 config.timing.delay = oldDelay; | 76 config.timing.delay = oldDelay; |
| 77 config.node = null; | 77 config.node = null; |
| 78 // if a bad animation was configured, abort config. | 78 // if a bad animation was configured, abort config. |
| 79 if (abortedConfigure) { | 79 if (abortedConfigure) { |
| 80 return; | 80 return; |
| 81 } | 81 } |
| 82 | 82 |
| 83 this._effect = new GroupEffect(effects); | 83 this._effect = new GroupEffect(effects); |
| 84 return this._effect; | 84 return this._effect; |
| 85 }, | 85 }, |
| 86 | 86 |
| 87 complete: function() { | 87 complete: function() { |
| 88 for (var animation, index = 0; animation = this._animations[index]; index+
+) { | 88 for (var animation, index = 0; animation = this._animations[index]; index+
+) { |
| 89 animation.complete(animation.config); | 89 animation.complete(animation.config); |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| 93 }); | 93 }); |
| 94 | 94 |
| 95 </script> | 95 </script> |
| OLD | NEW |