doc: Merged/updated old docs for Element.classNames, mostly by marking it deprecated.

This commit is contained in:
tjcrowder 2009-10-09 15:49:54 +01:00
parent 892eb9d6b3
commit 1e29e3c6c9

View File

@ -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);