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-Url: http://git.asbjorn.it/?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 b193a62..94e0228 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 ); }; }