mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-22 23:50:33 +00:00
fixed bug with uninitialized function in anyload
This commit is contained in:
parent
ee06841ea9
commit
48b6729011
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ CloudClient._anyload = function(pName,pSrc,pFunc,pStyle,pId,pElement)
|
|||
/* if passed arguments function
|
||||
* then it's onload by default
|
||||
*/
|
||||
if(typeof pFunc === 'function'){
|
||||
if(pFunc && typeof pFunc === 'function'){
|
||||
element.onload=pFunc;
|
||||
/* if object - then onload or onerror */
|
||||
}else if (typeof pFunc === 'object'){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue