mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
Update client.js
This commit is contained in:
parent
58c2920702
commit
ab21cda415
1 changed files with 4 additions and 4 deletions
|
|
@ -232,22 +232,22 @@ CloudClient.Util = (function(){
|
|||
if(pParams_o.func)
|
||||
if(typeof lFunc === 'function'){
|
||||
element.onload = lFunc;
|
||||
|
||||
/*
|
||||
element.onreadystatechange = function(){
|
||||
if(this.readyState === 'loaded')
|
||||
lFunc();
|
||||
}; /* ie */
|
||||
};*/ /* ie */
|
||||
|
||||
/* if object - then onload or onerror */
|
||||
}else if (typeof lFunc === 'object') {
|
||||
if(lFunc.onload &&
|
||||
typeof lFunc.onload === 'function'){
|
||||
element.onload = lFunc.onload;
|
||||
|
||||
/*
|
||||
element.onreadystatechange = function(){
|
||||
if(this.readyState === 'loaded')
|
||||
lFunc();
|
||||
}; /* ie */
|
||||
};*/ /* ie */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue