| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 Polymer({ | 3 Polymer({ |
| 4 | 4 |
| 5 is: 'iron-pages', | 5 is: 'iron-pages', |
| 6 | 6 |
| 7 behaviors: [ | 7 behaviors: [ |
| 8 Polymer.IronResizableBehavior, | 8 Polymer.IronResizableBehavior, |
| 9 Polymer.IronSelectableBehavior | 9 Polymer.IronSelectableBehavior |
| 10 ], | 10 ], |
| 11 | 11 |
| 12 properties: { |
| 13 |
| 14 // as the selected page is the only one visible, activateEvent |
| 15 // is both non-sensical and problematic; e.g. in cases where a user |
| 16 // handler attempts to change the page and the activateEvent |
| 17 // handler immediately changes it back |
| 18 activateEvent: { |
| 19 value: null |
| 20 } |
| 21 |
| 22 }, |
| 23 |
| 12 observers: [ | 24 observers: [ |
| 13 '_selectedPageChanged(selected)' | 25 '_selectedPageChanged(selected)' |
| 14 ], | 26 ], |
| 15 | 27 |
| 16 _selectedPageChanged: function(selected, old) { | 28 _selectedPageChanged: function(selected, old) { |
| 17 this.async(this.notifyResize); | 29 this.async(this.notifyResize); |
| 18 } | 30 } |
| 19 }); | 31 }); |
| 20 | 32 |
| OLD | NEW |