LearnBoost/jsonp — pull request #11 by feross (2014-06-04 03:25:12+00:00)
Title: Return fn to cancel in-progress jsonp request

When destroying a page component, for example a video player, it’s
important to be able to cancel in-flight jsonp requests so the callback
doesn’t get called and all references to the player will be nulled so
the player can get garbage collected quickly.

If the callback were to hang around for another few seconds, this would
delay GC and call a function that assumes the player is in a good state
when it’s not.