From 7607aa3f093f9d63cda5e366ddd56c86355cdf6c Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 30 Apr 2008 09:38:25 +0000 Subject: Removing a script node crashes IE 5.0x --- itjs/loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itjs/loader.js b/itjs/loader.js index 0fa7c4e..25bb33c 100644 --- a/itjs/loader.js +++ b/itjs/loader.js @@ -262,7 +262,8 @@ unlink: function(callid) if (this.scrpt[callid]) { - document.body.removeChild(this.scrpt[callid]); + if (!(document.all && String(navigator.userAgent).indexOf('MSIE 5.0') > 0)) + document.body.removeChild(this.scrpt[callid]); this.scrpt[callid] = null; } -- cgit v1.2.3