Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/9a3c4d97d96ce32e693d022972495218.json
2020-12-22 09:59:14 -05:00

1 line
681 B
JSON

{"ast":null,"code":"function replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp(\"(^|\\\\s)\" + classToRemove + \"(?:\\\\s|$)\", 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nexport default function removeClass(element, className) {\n if (element.classList) {\n element.classList.remove(className);\n } else if (typeof element.className === 'string') {\n ;\n element.className = replaceClassName(element.className, className);\n } else {\n element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n }\n}","map":null,"metadata":{},"sourceType":"module"}