diff --git a/src/js/lib/class.js b/src/js/lib/class.js index a70724b..0210605 100644 --- a/src/js/lib/class.js +++ b/src/js/lib/class.js @@ -38,7 +38,7 @@ exports.remove = function (element, className) { exports.list = function (element) { if (element.classList) { - return element.classList; + return Array.prototype.slice.apply(element.classList); } else { return element.className.split(' '); }