Commit 9af73875 authored by David Serduke's avatar David Serduke

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

parent 6a25c20f
...@@ -192,6 +192,8 @@ jQuery.extend({ ...@@ -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 );
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment