MCPcopy Create free account
hub / github.com/breck7/scroll / rmClass

Function rmClass

external/.scrollLibs.js:517–524  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

515 }
516
517 var rmClass = function (node, cls) {
518 var current = node.className
519 var match = classTest(cls).exec(current)
520 if (match) {
521 var after = current.slice(match.index + match[0].length)
522 node.className = current.slice(0, match.index) + (after ? match[1] + after : "")
523 }
524 }
525
526 function removeChildren(e) {
527 for (var count = e.childNodes.length; count > 0; --count) {

Callers 5

onBlurFunction · 0.85
initScrollbarsFunction · 0.85
upFunction · 0.85
wrappingChangedFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

classTestFunction · 0.85
sliceMethod · 0.80

Tested by

no test coverage detected