MCPcopy Create free account
hub / github.com/breck7/scroll / ClassList

Function ClassList

external/.d3.js:2208–2211  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

2206}
2207
2208function ClassList(node) {
2209 this._node = node;
2210 this._names = classArray(node.getAttribute("class") || "");
2211}
2212
2213ClassList.prototype = {
2214 add: function(name) {

Callers

nothing calls this directly

Calls 2

classArrayFunction · 0.85
getAttributeMethod · 0.80

Tested by

no test coverage detected