From f7d77430dbcbbd9f850ed985aa0569fe8b22f110 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 27 Jul 2012 04:26:47 -0400 Subject: [PATCH] minor changes --- client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index 0a8713a2..4cf02c70 100644 --- a/client.js +++ b/client.js @@ -657,7 +657,9 @@ CloudClient._anyload = function(pParams_o) if(lFunc.onerror && typeof lFunc.onerror === 'function') element.onerror = (function(){ - document.removeChild(element); + (pParams_o.element || document.body) + .removeChild(element); + lFunc.onerror(); }); }