minor cleanup
This commit is contained in:
parent
9a33041ac4
commit
2809a5d06d
1 changed files with 10 additions and 3 deletions
|
@ -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 = Ox.unique(
|
||||||
|
this[0].className.split(' ').push(className)
|
||||||
|
).join(' ');
|
||||||
|
*/
|
||||||
|
this[0].className = this[0].className
|
||||||
|
? Ox.unique(
|
||||||
(this[0].className + ' ' + str).split(' ')
|
(this[0].className + ' ' + str).split(' ')
|
||||||
).join(' ') : str;
|
).join(' ')
|
||||||
|
: str;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue