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