MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / removeRules

Function removeRules

code/styling/public/app.js:20379–20394  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

20377 };
20378
20379 var removeRules = function removeRules(id) {
20380 var marker = markers[id];
20381 if (marker === undefined) return;
20382
20383 var size = sizes[marker];
20384 var sheet = sheetForTag(el);
20385 var removalIndex = addUpUntilIndex(sizes, marker);
20386 deleteRules(sheet, removalIndex, size);
20387 sizes[marker] = 0;
20388 resetIdNames(names, id);
20389
20390 if (extractImport && usedImportRuleTag) {
20391 // $FlowFixMe
20392 getImportRuleTag().removeRules(id + '-import');
20393 }
20394 };
20395
20396 var css = function css() {
20397 var _sheetForTag = sheetForTag(el),

Callers

nothing calls this directly

Calls 5

sheetForTagFunction · 0.85
addUpUntilIndexFunction · 0.85
deleteRulesFunction · 0.85
resetIdNamesFunction · 0.85
makeTextNodeFunction · 0.85

Tested by

no test coverage detected