summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2008-04-30 09:38:25 +0000
committerThomas BrĂ¼derli2008-04-30 09:38:25 +0000
commit7607aa3f093f9d63cda5e366ddd56c86355cdf6c (patch)
treec2e346158677968e85c4a5f70b67bad57fc14f4c /itjs
parentbaa5b17ddfedcc07eaf6f7a40eb8755a7002e9c0 (diff)
downloaditools-7607aa3f093f9d63cda5e366ddd56c86355cdf6c.tar.gz
itools-7607aa3f093f9d63cda5e366ddd56c86355cdf6c.tar.bz2
itools-7607aa3f093f9d63cda5e366ddd56c86355cdf6c.zip
Removing a script node crashes IE 5.0x
Diffstat (limited to 'itjs')
-rw-r--r--itjs/loader.js3
1 files changed, 2 insertions, 1 deletions
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;
}