MCPcopy Create free account
hub / github.com/reactjs/react-modal / resetState

Function resetState

src/helpers/classList.js:11–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10/* istanbul ignore next */
11export function resetState() {
12 const htmlElement = document.getElementsByTagName("html")[0];
13 for (let cls in htmlClassList) {
14 removeClass(htmlElement, htmlClassList[cls]);
15 }
16
17 const body = document.body;
18 for (let cls in docBodyClassList) {
19 removeClass(body, docBodyClassList[cls]);
20 }
21
22 htmlClassList = {};
23 docBodyClassList = {};
24}
25
26/* istanbul ignore next */
27export function log() {

Callers

nothing calls this directly

Calls 1

removeClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…