(el)
| 10 | join = prototype.join; |
| 11 | |
| 12 | function DOMTokenList(el) { |
| 13 | this.el = el; |
| 14 | // The className needs to be trimmed and split on whitespace |
| 15 | // to retrieve a list of classes. |
| 16 | var classes = el.className.replace(/^\s+|\s+$/g, '').split(/\s+/); |
| 17 | for (var i = 0; i < classes.length; i++) { |
| 18 | push.call(this, classes[i]); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | DOMTokenList.prototype = { |
| 23 | add: function (token) { |
nothing calls this directly
no outgoing calls
no test coverage detected