Commit 1c77259d authored by jaubourg's avatar jaubourg

Removes unnecessary call to `.off()` as noted by @dcherman.

parent 4c6fb65d
......@@ -38,7 +38,7 @@ jQuery.ajaxTransport( "script", function( s ) {
}).on(
"load error",
callback = function( evt ) {
script.off().remove();
script.remove();
callback = null;
if ( evt ) {
complete( evt.type === "error" ? 404 : 200, evt.type );
......
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