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