Sha256: b06ae3e1a183b10a9d3d618e9ba7d1e2f1ddeea0c6329fd2351eb2f25d416b13
Contents?: true
Size: 386 Bytes
Versions: 5
Compression:
Stored size: 386 Bytes
Contents
var _ = require('../util') var addClass = _.addClass var removeClass = _.removeClass module.exports = function (value) { if (this.arg) { var method = value ? addClass : removeClass method(this.el, this.arg) } else { if (this.lastVal) { removeClass(this.el, this.lastVal) } if (value) { addClass(this.el, value) this.lastVal = value } } }
Version data entries
5 entries across 5 versions & 1 rubygems