From 002034fd54b791a2cc3788300a27fd32dbd304db Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Sat, 3 Oct 2015 21:21:56 +0900 Subject: [PATCH] Return an Array object from class.list To fix #383 --- src/js/lib/class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(' '); }