From a9798a3bc7d3df608b39161952aac7a8d2984030 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 27 Jul 2012 04:12:50 -0400 Subject: [PATCH] minor changes --- client.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client.js b/client.js index a3fbc4c6..6c239815 100644 --- a/client.js +++ b/client.js @@ -656,14 +656,18 @@ CloudClient._anyload = function(pParams_o) if(lFunc.onerror && typeof lFunc.onerror === 'function') - element.onerror = lFunc.onerror; + element.onerror = (function(){ + lFunc.onerror(); + + return false; + }); } if(pParams_o.style){ element.style.cssText=pParams_o.style; } - if(lAsync) + if(lAsync || lAsync === undefined) element.async = true; (pParams_o.element || document.body).appendChild(element);