15 lines
645 B
JavaScript
15 lines
645 B
JavaScript
|
//// [parserArgumentList1.ts]
|
||
|
export function removeClass (node:HTMLElement, className:string) {
|
||
|
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
|
||
|
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
|
||
|
});
|
||
|
}
|
||
|
|
||
|
//// [parserArgumentList1.js]
|
||
|
function removeClass(node, className) {
|
||
|
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
|
||
|
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
|
||
|
});
|
||
|
}
|
||
|
exports.removeClass = removeClass;
|