Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js

Issue 1410143002: Update Polymer to fix closure compile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iron-list5
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698