aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-12-17 00:51:59 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-12-17 00:51:59 +0000
commit9af7387579a4350f66e49324483c6b599f43b9b2 (patch)
tree63389644ff7c769afab2cbc5d82c92236812471a
parent6a25c20f5cdf2eba12d204517598a9e1386ab3a6 (diff)
downloadjquery-9af7387579a4350f66e49324483c6b599f43b9b2.tar.gz
jquery-9af7387579a4350f66e49324483c6b599f43b9b2.zip
Added code to remove the script tag on successful jsonp calls.
-rw-r--r--src/ajax.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js
index b193a62d9..94e022832 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -192,6 +192,8 @@ jQuery.extend({
// Garbage collect
window[ jsonp ] = undefined;
try{ delete window[ jsonp ]; } catch(e){}
+ if ( head )
+ head.removeChild( script );
};
}