mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-22 07:34:16 +00:00
minor changes
This commit is contained in:
parent
35e11bbaa7
commit
47c0af46f7
1 changed files with 9 additions and 8 deletions
17
client.js
17
client.js
|
|
@ -231,11 +231,17 @@ CloudClient.Util = (function(){
|
|||
if(pParams_o.func)
|
||||
if(typeof lFunc === 'function'){
|
||||
element.onload = lFunc;
|
||||
element.onreadystatechange = lFunc;
|
||||
/*
|
||||
this.readyState
|
||||
*/
|
||||
/* if object - then onload or onerror */
|
||||
}else if (typeof lFunc === 'object') {
|
||||
if(lFunc.onload &&
|
||||
typeof lFunc.onload === 'function')
|
||||
element.onload = lFunc.onload;
|
||||
typeof lFunc.onload === 'function'){
|
||||
element.onload = lFunc.onload;
|
||||
element.onreadystatechange = lFunc;
|
||||
}
|
||||
}
|
||||
|
||||
/* if element (js/css) will not loaded
|
||||
|
|
@ -266,12 +272,7 @@ CloudClient.Util = (function(){
|
|||
|
||||
if(!pParams_o.not_append)
|
||||
(pParams_o.parent || document.body).appendChild(element);
|
||||
|
||||
|
||||
element.onreadystatechange = function(){
|
||||
alert(this.readyState);
|
||||
};
|
||||
|
||||
|
||||
if(pParams_o.inner){
|
||||
element.innerHTML = pParams_o.inner;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue