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