| OLD | NEW |
| (Empty) |
| 1 (function() { | |
| 2 | |
| 3 Polymer({ | |
| 4 | |
| 5 is: 'paper-dialog', | |
| 6 | |
| 7 behaviors: [ | |
| 8 Polymer.PaperDialogBehavior, | |
| 9 Polymer.NeonAnimationRunnerBehavior | |
| 10 ], | |
| 11 | |
| 12 listeners: { | |
| 13 'neon-animation-finish': '_onNeonAnimationFinish' | |
| 14 }, | |
| 15 | |
| 16 _renderOpened: function() { | |
| 17 this.cancelAnimation(); | |
| 18 this.playAnimation('entry'); | |
| 19 }, | |
| 20 | |
| 21 _renderClosed: function() { | |
| 22 this.cancelAnimation(); | |
| 23 this.playAnimation('exit'); | |
| 24 }, | |
| 25 | |
| 26 _onNeonAnimationFinish: function() { | |
| 27 if (this.opened) { | |
| 28 this._finishRenderOpened(); | |
| 29 } else { | |
| 30 this._finishRenderClosed(); | |
| 31 } | |
| 32 } | |
| 33 | |
| 34 }); | |
| 35 | |
| 36 })(); | |
| OLD | NEW |