minor cleanup

This commit is contained in:
j 2011-11-03 16:20:14 +01:00
parent 9a33041ac4
commit 2809a5d06d

View file

@ -84,9 +84,16 @@ Ox.element = function(str) {
className <s> Class name className <s> Class name
@*/ @*/
addClass: function(str) { addClass: function(str) {
this[0].className = this[0].className ? Ox.unique( /* fixme:
(this[0].className + ' ' + str).split(' ') this[0].className = Ox.unique(
).join(' ') : str; this[0].className.split(' ').push(className)
).join(' ');
*/
this[0].className = this[0].className
? Ox.unique(
(this[0].className + ' ' + str).split(' ')
).join(' ')
: str;
return this; return this;
}, },
/*@ /*@