Package Exports
- element-class
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (element-class) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
element-class
exactly like .addClass and .removeClass from jquery but with dependencies
npm install element-class
var elementClass = require('elementClass')
// get an element
var foo = document.querySelector('.foo')
// remove a class
elementClass(foo).remove('foo')
// add a class
elementClass(foo).add('foo')
license
BSD