Added code to remove the script tag on successful jsonp calls.

This commit is contained in:
David Serduke 2007-12-17 00:51:59 +00:00
parent 6a25c20f5c
commit 9af7387579

View file

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