(f)
| 185 | }; |
| 186 | |
| 187 | const destroy = (f) => () => { |
| 188 | // remove from fitties array |
| 189 | fitties = fitties.filter((_) => _.element !== f.element); |
| 190 | |
| 191 | // stop observing DOM |
| 192 | if (f.observeMutations) f.observer.disconnect(); |
| 193 | |
| 194 | // reset the CSS properties we changes |
| 195 | f.element.style.whiteSpace = f.originalStyle.whiteSpace; |
| 196 | f.element.style.display = f.originalStyle.display; |
| 197 | f.element.style.fontSize = f.originalStyle.fontSize; |
| 198 | }; |
| 199 | |
| 200 | // add a new fitty, does not redraw said fitty |
| 201 | const subscribe = (f) => () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…