class-list-shim

Fork of Raynos/class-list compatible with IE8

class-list

A cross browser class list

var elem = someElement
    , ClassList = require("class-list")
    , cl = ClassList(elem)
 
cl.add("foo")
cl.remove("bar")
cl.toggle("baz")

npm install class-list

  • Raynos