| OLD | NEW |
| 1 Polymer({ | 1 |
| 2 | 2 |
| 3 Polymer({ |
| 4 |
| 3 is: 'iron-collapse', | 5 is: 'iron-collapse', |
| 4 | 6 |
| 5 properties: { | 7 properties: { |
| 6 | 8 |
| 7 /** | 9 /** |
| 8 * If true, the orientation is horizontal; otherwise is vertical. | 10 * If true, the orientation is horizontal; otherwise is vertical. |
| 9 * | 11 * |
| 10 * @attribute horizontal | 12 * @attribute horizontal |
| 11 */ | 13 */ |
| 12 horizontal: { | 14 horizontal: { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 this.toggleClass('iron-collapse-closed', !this.opened); | 110 this.toggleClass('iron-collapse-closed', !this.opened); |
| 109 this.toggleClass('iron-collapse-opened', this.opened); | 111 this.toggleClass('iron-collapse-opened', this.opened); |
| 110 this.enableTransition(false); | 112 this.enableTransition(false); |
| 111 }, | 113 }, |
| 112 | 114 |
| 113 _calcSize: function() { | 115 _calcSize: function() { |
| 114 return this.getBoundingClientRect()[this.dimension] + 'px'; | 116 return this.getBoundingClientRect()[this.dimension] + 'px'; |
| 115 }, | 117 }, |
| 116 | 118 |
| 117 | 119 |
| 118 }); | 120 }); |
| 121 |
| OLD | NEW |