]> source.dussan.org Git - jquery.git/commitdiff
Added code to remove the script tag on successful jsonp calls.
authorDavid Serduke <davidserduke@gmail.com>
Mon, 17 Dec 2007 00:51:59 +0000 (00:51 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Mon, 17 Dec 2007 00:51:59 +0000 (00:51 +0000)
src/ajax.js

index b193a62d9bf3c70d69a98c60d99f5dc628d0d408..94e022832f32d99618266266ea07901866c03ba2 100644 (file)
@@ -192,6 +192,8 @@ jQuery.extend({
                                // Garbage collect
                                window[ jsonp ] = undefined;
                                try{ delete window[ jsonp ]; } catch(e){}
+                               if ( head )
+                                       head.removeChild( script );
                        };
                }