From: David Serduke Date: Mon, 17 Dec 2007 00:51:59 +0000 (+0000) Subject: Added code to remove the script tag on successful jsonp calls. X-Git-Tag: 1.2.2b~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9af7387579a4350f66e49324483c6b599f43b9b2;p=jquery.git Added code to remove the script tag on successful jsonp calls. --- 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 ); }; }