From 48b67290119ac0c8d4659c7075874aabeb5075d3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 17 Jul 2012 11:07:05 +0300 Subject: [PATCH] fixed bug with uninitialized function in anyload --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index cadd6682..e8ddb8f7 100644 --- a/client.js +++ b/client.js @@ -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'){