MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / toggle

Method toggle

src/mapml/utils/DOMTokenList.js:86–89  ·  view source on GitHub ↗
(token, force)

Source from the content-addressed store, hash-verified

84 // Modified default behavior
85 //https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle
86 toggle(token, force) {
87 this.domtokenlist.toggle(token, force);
88 this.#element.setAttribute(this.#attribute, this.domtokenlist.value); // jshint ignore:line
89 }
90
91 entries() {
92 return this.domtokenlist.entries();

Callers 2

Calls 1

setAttributeMethod · 0.80

Tested by

no test coverage detected