OLD | NEW |
1 (function() { | 1 (function() { |
2 | 2 |
3 Polymer({ | 3 Polymer({ |
4 | 4 |
5 is: 'neon-animated-pages', | 5 is: 'neon-animated-pages', |
6 | 6 |
7 behaviors: [ | 7 behaviors: [ |
8 Polymer.IronResizableBehavior, | 8 Polymer.IronResizableBehavior, |
9 Polymer.IronSelectableBehavior, | 9 Polymer.IronSelectableBehavior, |
10 Polymer.NeonAnimationRunnerBehavior | 10 Polymer.NeonAnimationRunnerBehavior |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 // configure oldPage animations iff exists. | 69 // configure oldPage animations iff exists. |
70 if (oldPage) { | 70 if (oldPage) { |
71 | 71 |
72 // cancel the currently running animation if one is ongoing. | 72 // cancel the currently running animation if one is ongoing. |
73 if (oldPage.classList.contains('neon-animating')) { | 73 if (oldPage.classList.contains('neon-animating')) { |
74 this._squelchNextFinishEvent = true; | 74 this._squelchNextFinishEvent = true; |
75 this.cancelAnimation(); | 75 this.cancelAnimation(); |
76 this._completeSelectedChanged(); | 76 this._completeSelectedChanged(); |
| 77 this._squelchNextFinishEvent = false; |
77 } | 78 } |
78 | 79 |
79 // configure the animation. | 80 // configure the animation. |
80 if (this.exitAnimation) { | 81 if (this.exitAnimation) { |
81 this.animationConfig.push({ | 82 this.animationConfig.push({ |
82 name: this.exitAnimation, | 83 name: this.exitAnimation, |
83 node: oldPage | 84 node: oldPage |
84 }); | 85 }); |
85 } else { | 86 } else { |
86 if (oldPage.getAnimationConfig) { | 87 if (oldPage.getAnimationConfig) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 var selectedPage = this.selectedItem; | 155 var selectedPage = this.selectedItem; |
155 this.resizerShouldNotify = function(element) { | 156 this.resizerShouldNotify = function(element) { |
156 return element == selectedPage; | 157 return element == selectedPage; |
157 } | 158 } |
158 this.notifyResize(); | 159 this.notifyResize(); |
159 } | 160 } |
160 | 161 |
161 }) | 162 }) |
162 | 163 |
163 })(); | 164 })(); |
OLD | NEW |