diff --git a/src/dom.js b/src/dom.js index 27da475..c6c5458 100644 --- a/src/dom.js +++ b/src/dom.js @@ -285,7 +285,7 @@ Element.Methods = { }, classNames: function(element) { - return $w(element.className); + return new Element.ClassNames(element); }, hasClassName: function(element, className) {