(el, name)
| 1336 | |
| 1337 | // Similar to jQuery's addClass, but use classList.add |
| 1338 | function _addClass(el, name) { |
| 1339 | if (name) { |
| 1340 | name.split(" ").forEach(function (n) { |
| 1341 | if (n) { |
| 1342 | // `add` does deduplication, so no need to check `contains` |
| 1343 | el.classList.add(n) |
| 1344 | } |
| 1345 | }) |
| 1346 | } |
| 1347 | } |
| 1348 | |
| 1349 | /** |
| 1350 | * DataTables utility methods |
no test coverage detected