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

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

Issue 1901343004: [Polymer] update third_party polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new pull Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
index ae4098f04a4d84b02d475ad41a7cdd17d72af1d7..e8dddabe4385c29641617b2cbd8f909908cf3f97 100644
--- a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
@@ -25,19 +25,21 @@
},
- observers: [
- '_selectedChanged(selected)'
- ],
-
listeners: {
+ 'iron-select': '_onIronSelect',
'neon-animation-finish': '_onNeonAnimationFinish'
},
- _selectedChanged: function(selected) {
+ _onIronSelect: function(event) {
+ var selectedPage = event.detail.item;
- var selectedPage = this.selectedItem;
+ // Only consider child elements.
+ if (this.items.indexOf(selectedPage) < 0) {
+ return;
+ }
+
var oldPage = this._valueToItem(this._prevSelected) || false;
- this._prevSelected = selected;
+ this._prevSelected = this.selected;
// on initial load and if animateInitialSelection is negated, simply display selectedPage.
if (!oldPage && !this.animateInitialSelection) {

Powered by Google App Engine
This is Rietveld 408576698