()
| 1103 | |
| 1104 | let detached; // eslint-disable-line prefer-const |
| 1105 | const attached = () => { |
| 1106 | _remove('attach', attached); |
| 1107 | |
| 1108 | this.attached = true; |
| 1109 | this.resize(); |
| 1110 | |
| 1111 | _add('resize', listener); |
| 1112 | _add('detach', detached); |
| 1113 | }; |
| 1114 | |
| 1115 | detached = () => { |
| 1116 | this.attached = false; |