MCPcopy Index your code
hub / github.com/codedogQBY/ReadAny / remove

Method remove

packages/foliate-js/overlayer.js:32–36  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

30 this.#map.set(key, { range: resolvedRange, draw, options, element, rects });
31 }
32 remove(key) {
33 if (!this.#map.has(key)) return;
34 this.#map.get(key).element.remove();
35 this.#map.delete(key);
36 }
37 redraw() {
38 for (const obj of this.#map.values()) {
39 const { range, draw, options, element } = obj;

Callers 15

addMethod · 0.95
MessageListFunction · 0.80
MissingBookPromptFunction · 0.80
subscribeVisibilityFunction · 0.80
subscribeVisibilityFunction · 0.80
subscribeBeforeUnloadFunction · 0.80
_subscribeToEventsMethod · 0.80
_removeSilenceTracksMethod · 0.80
speakMethod · 0.80
_speakChunkMethod · 0.80
stopMethod · 0.80
_subscribeToEventsMethod · 0.80

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected