classes
classes copied to clipboard
Cross-browser element class manipulation
README mentioned MIT license, add License file
error Couldn't find package "[email protected]" required by "component-classes@^1.2.5" on the "npm" registry.
When `antd` is used in Meteor, this warning shows up: ``` Unable to resolve some modules: "indexof" in .../node_modules/component-classes/index.js (web.browser) If you notice problems related to these missing modules, consider...
I don't know about other people's experience but I've got these annoying warnings... ``` Unable to resolve some modules: "indexof" in /usr/share/meteor-app/node_modules/component-classes/index.js (web.browser) If you notice problems related to these...
http://stackoverflow.com/questions/531508/getattribute-cannot-return-class-in-ie7 So, ``` javascript ClassList.prototype.array = function(){ var className = this.el.getAttribute('class') || ''; ``` shoude be updated to: ``` javascript var className = this.el.className; ```
https://github.com/component/dialog/issues/29#issuecomment-107437997
``` js classes(el).add('hi hello howdy') ```
You have to do a little extra work to get and set the `.className` attribute of SVG elements. This does that extra work
more jquery-like