Return an Array object from class.list

To fix #383
This commit is contained in:
Hyunje Alex Jun 2015-10-03 21:21:56 +09:00
parent 8761735a54
commit 002034fd54

View File

@ -38,7 +38,7 @@ exports.remove = function (element, className) {
exports.list = function (element) { exports.list = function (element) {
if (element.classList) { if (element.classList) {
return element.classList; return Array.prototype.slice.apply(element.classList);
} else { } else {
return element.className.split(' '); return element.className.split(' ');
} }