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) {
if (element.classList) {
return element.classList;
return Array.prototype.slice.apply(element.classList);
} else {
return element.className.split(' ');
}