| 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) {
|
|
|