TypeScript/tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts
2014-07-12 17:30:19 -07:00

5 lines
No EOL
280 B
TypeScript

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 ? ' ' : '';
});
}