appendto/jquery-mockjax — pull request #55 by johnkpaul (2012-02-02 22:35:30+00:00)
Title: return $.Deferred from $.ajax in case of mocked jsonp or script request

In the case where the type of a ajax mock is "jsonp" or "script", the return value from $.ajax is currently just {{true}} instead of the usual $.Deferred object. Inside the conditional that checks if the dataType is "script", I added code to set the mock object to a $.Deferred that is already resolved with the mock object's responseText.