Skip to content
Permalink
Browse files
Added code to remove the script tag on successful jsonp calls.
  • Loading branch information
davids549 committed Dec 17, 2007
1 parent 6a25c20 commit 9af7387579a4350f66e49324483c6b599f43b9b2
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 );
};
}

0 comments on commit 9af7387

Please sign in to comment.