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