(instance)
| 16 | } |
| 17 | |
| 18 | function autoBind(instance) { |
| 19 | const proto = Object.getPrototypeOf(instance); |
| 20 | Object.getOwnPropertyNames(proto).forEach(key => { |
| 21 | if (key !== 'constructor' && typeof instance[key] === 'function') { |
| 22 | instance[key] = instance[key].bind(instance); |
| 23 | } |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | const DEFAULT_FONT = 'bold 30px Figtree'; |
| 28 | // Figtree is not guaranteed to be available on the host page, so the component |