minor changes

This commit is contained in:
coderaiser 2012-08-13 10:32:02 -04:00
parent c9b9c50be2
commit 19ffce24f5

View file

@ -231,16 +231,22 @@ CloudClient.Util = (function(){
if(pParams_o.func)
if(typeof lFunc === 'function'){
element.onload = lFunc;
element.onreadystatechange = lFunc;
/*
this.readyState
*/
element.onreadystatechange = function(){
if(this.readyState === 'loaded')
lFunc();
}; /* 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 = lFunc;
element.onreadystatechange = function(){
if(this.readyState === 'loaded')
lFunc();
}; /* ie */
}
}