OLD | NEW |
1 | 1 |
2 | 2 |
3 /** | 3 /** |
4 * Use `Polymer.NeonAnimationBehavior` to implement an animation. | 4 * Use `Polymer.NeonAnimationBehavior` to implement an animation. |
5 * @polymerBehavior | 5 * @polymerBehavior |
6 */ | 6 */ |
7 Polymer.NeonAnimationBehavior = { | 7 Polymer.NeonAnimationBehavior = { |
8 | 8 |
9 properties: { | 9 properties: { |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 var prefixes = map[property]; | 58 var prefixes = map[property]; |
59 for (var prefix, index = 0; prefix = prefixes[index]; index++) { | 59 for (var prefix, index = 0; prefix = prefixes[index]; index++) { |
60 node.style[prefix] = value; | 60 node.style[prefix] = value; |
61 } | 61 } |
62 node.style[property] = value; | 62 node.style[property] = value; |
63 }, | 63 }, |
64 | 64 |
65 /** | 65 /** |
66 * Called when the animation finishes. | 66 * Called when the animation finishes. |
67 */ | 67 */ |
68 complete: function() { | 68 complete: function() {} |
69 // FIXME not sure about non-bubbling event | |
70 this.fire(this.animationEndEvent, null, {bubbles: false}); | |
71 } | |
72 | 69 |
73 }; | 70 }; |
74 | 71 |
OLD | NEW |