mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
minor changes
This commit is contained in:
parent
ebe78db5af
commit
a9798a3bc7
1 changed files with 6 additions and 2 deletions
|
|
@ -656,14 +656,18 @@ CloudClient._anyload = function(pParams_o)
|
|||
|
||||
if(lFunc.onerror &&
|
||||
typeof lFunc.onerror === 'function')
|
||||
element.onerror = lFunc.onerror;
|
||||
element.onerror = (function(){
|
||||
lFunc.onerror();
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
if(pParams_o.style){
|
||||
element.style.cssText=pParams_o.style;
|
||||
}
|
||||
|
||||
if(lAsync)
|
||||
if(lAsync || lAsync === undefined)
|
||||
element.async = true;
|
||||
|
||||
(pParams_o.element || document.body).appendChild(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue