()
| 1020 | |
| 1021 | let detached; // eslint-disable-line prefer-const |
| 1022 | const attached = () => { |
| 1023 | _remove('attach', attached); |
| 1024 | |
| 1025 | this.attached = true; |
| 1026 | this.resize(); |
| 1027 | |
| 1028 | _add('resize', listener); |
| 1029 | _add('detach', detached); |
| 1030 | }; |
| 1031 | |
| 1032 | detached = () => { |
| 1033 | this.attached = false; |