mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
2f50819ec1
commit
4b46046d2f
1 changed files with 4 additions and 3 deletions
|
|
@ -112,11 +112,12 @@ var CloudCommander, $;
|
|||
if(!document.body.classList){
|
||||
lUtil.addClass = function(pElement, pClass){
|
||||
var lSpaceChar = '',
|
||||
lClassName = pElement.className,
|
||||
lRet_b = true;
|
||||
|
||||
if(pElement.className)
|
||||
lSpaceChar = ' ';
|
||||
if( !pElement.contains(pClass) )
|
||||
if(lClassName) lSpaceChar = ' ';
|
||||
|
||||
if( lClassName.indexOf(pClass) < 0 )
|
||||
pElement.className += lSpaceChar + pClass;
|
||||
else
|
||||
lRet_b = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue