MCPcopy
hub / github.com/cssinjs/jss / remove

Method remove

packages/jss/src/RuleList.js:114–118  ·  view source on GitHub ↗

* Delete a rule.

(rule)

Source from the content-addressed store, hash-verified

112 * Delete a rule.
113 */
114 remove(rule) {
115 this.unregister(rule)
116 delete this.raw[rule.key]
117 this.index.splice(this.index.indexOf(rule), 1)
118 }
119
120 /**
121 * Get index of a rule.

Callers 6

replaceMethod · 0.95
removeStyleSheetMethod · 0.45
deleteRuleMethod · 0.45
jss-tests.tsFile · 0.45
sheetsRegistry.jsFile · 0.45
client.jsFile · 0.45

Calls 2

unregisterMethod · 0.95
indexOfMethod · 0.65

Tested by

no test coverage detected