| 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: { | 12 properties: { |
| 13 | 13 |
| 14 // as the selected page is the only one visible, activateEvent | 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 | 15 // is both non-sensical and problematic; e.g. in cases where a user |
| 16 // handler attempts to change the page and the activateEvent | 16 // handler attempts to change the page and the activateEvent |
| 17 // handler immediately changes it back | 17 // handler immediately changes it back |
| 18 activateEvent: { | 18 activateEvent: { |
| 19 type: String, |
| 19 value: null | 20 value: null |
| 20 } | 21 } |
| 21 | 22 |
| 22 }, | 23 }, |
| 23 | 24 |
| 24 observers: [ | 25 observers: [ |
| 25 '_selectedPageChanged(selected)' | 26 '_selectedPageChanged(selected)' |
| 26 ], | 27 ], |
| 27 | 28 |
| 28 _selectedPageChanged: function(selected, old) { | 29 _selectedPageChanged: function(selected, old) { |
| 29 this.async(this.notifyResize); | 30 this.async(this.notifyResize); |
| 30 } | 31 } |
| 31 }); | 32 }); |
| 32 | 33 |
| OLD | NEW |