diff options
author | David Serduke <davidserduke@gmail.com> | 2007-12-17 00:51:59 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-12-17 00:51:59 +0000 |
commit | 9af7387579a4350f66e49324483c6b599f43b9b2 (patch) | |
tree | 63389644ff7c769afab2cbc5d82c92236812471a | |
parent | 6a25c20f5cdf2eba12d204517598a9e1386ab3a6 (diff) | |
download | jquery-9af7387579a4350f66e49324483c6b599f43b9b2.tar.gz jquery-9af7387579a4350f66e49324483c6b599f43b9b2.zip |
Added code to remove the script tag on successful jsonp calls.
-rw-r--r-- | src/ajax.js | 2 |
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 ); }; } |