(node, cls)
| 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) { |
no test coverage detected