From 1575435f5e710672f0c01c602bf73b6648f0826b Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 24 Jul 2007 20:53:32 +0000 Subject: [PATCH] prototype: Element#classNames should still use the Element.ClassNames API for now --- src/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {