From 1e29e3c6c924db6d9c0b525e11a96c1f71bbab60 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Fri, 9 Oct 2009 15:49:54 +0100 Subject: [PATCH] doc: Merged/updated old docs for Element.classNames, mostly by marking it deprecated. --- src/dom/dom.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index 37bc839..813a5ae 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -780,11 +780,15 @@ Element.Methods = { return Element.getDimensions(element).width; }, - /** + /** deprecated * Element.classNames(@element) -> [String...] * * Returns a new instance of [[Element.ClassNames]], an [[Enumerable]] * object used to read and write CSS class names of `element`. + * + * **Deprecated**, please see [[Element.addClassName]], + * [[Element.removeClassName]], and [[Element.hasClassName]]. If you want + * an array of classnames, you can use `$w(element.className)`. **/ classNames: function(element) { return new Element.ClassNames(element);