{"action":"closed","number":3015,"pull_request":{"url":"https://api.github.com/repos/jquery/jquery/pulls/3015","id":63947132,"html_url":"https://github.com/jquery/jquery/pull/3015","diff_url":"https://github.com/jquery/jquery/pull/3015.diff","patch_url":"https://github.com/jquery/jquery/pull/3015.patch","issue_url":"https://api.github.com/repos/jquery/jquery/issues/3015","number":3015,"state":"closed","locked":false,"title":"Ajax: make jqXHR an instance of jQuery.Deferred","user":{"login":"bluekvirus","id":1764731,"avatar_url":"https://avatars.githubusercontent.com/u/1764731?v=3","gravatar_id":"","url":"https://api.github.com/users/bluekvirus","html_url":"https://github.com/bluekvirus","followers_url":"https://api.github.com/users/bluekvirus/followers","following_url":"https://api.github.com/users/bluekvirus/following{/other_user}","gists_url":"https://api.github.com/users/bluekvirus/gists{/gist_id}","starred_url":"https://api.github.com/users/bluekvirus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluekvirus/subscriptions","organizations_url":"https://api.github.com/users/bluekvirus/orgs","repos_url":"https://api.github.com/users/bluekvirus/repos","events_url":"https://api.github.com/users/bluekvirus/events{/privacy}","received_events_url":"https://api.github.com/users/bluekvirus/received_events","type":"User","site_admin":false},"body":"So that `$.ajax() instanceof $.Deferred` will be True. This is to enable accurate async grouping (all-done-timing) based on the return object types of individual callbacks. Right now, the returned jqXHR object is of no class at all but does have full promise interfaces. Would like to suggest a class for it to enable a rigid type switching on callback queue returns, please consider. \r\n\r\nI am using \r\n```\r\n//callback n \r\n{\r\n   return $.ajax();\r\n} \r\n```\r\nthen\r\n```\r\nresult = callback();\r\nif(result && result.done)\r\n  ...\r\n```\r\nnow for detecting a return of the jqXHR object.\r\n\r\nCheers,\r\nTim.","created_at":"2016-03-23T20:25:51Z","updated_at":"2016-04-08T13:22:53Z","closed_at":"2016-04-08T13:22:53Z","merged_at":null,"merge_commit_sha":"2526783fbf27b6912769d3ead10509305424477e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jquery/jquery/pulls/3015/commits","review_comments_url":"https://api.github.com/repos/jquery/jquery/pulls/3015/comments","review_comment_url":"https://api.github.com/repos/jquery/jquery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/3015/comments","statuses_url":"https://api.github.com/repos/jquery/jquery/statuses/d20c10bfa25708a74b3fc9cf496011951fcd2e46","head":{"label":"bluekvirus:patch-1","ref":"patch-1","sha":"d20c10bfa25708a74b3fc9cf496011951fcd2e46","user":{"login":"bluekvirus","id":1764731,"avatar_url":"https://avatars.githubusercontent.com/u/1764731?v=3","gravatar_id":"","url":"https://api.github.com/users/bluekvirus","html_url":"https://github.com/bluekvirus","followers_url":"https://api.github.com/users/bluekvirus/followers","following_url":"https://api.github.com/users/bluekvirus/following{/other_user}","gists_url":"https://api.github.com/users/bluekvirus/gists{/gist_id}","starred_url":"https://api.github.com/users/bluekvirus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluekvirus/subscriptions","organizations_url":"https://api.github.com/users/bluekvirus/orgs","repos_url":"https://api.github.com/users/bluekvirus/repos","events_url":"https://api.github.com/users/bluekvirus/events{/privacy}","received_events_url":"https://api.github.com/users/bluekvirus/received_events","type":"User","site_admin":false},"repo":{"id":54589853,"name":"jquery","full_name":"bluekvirus/jquery","owner":{"login":"bluekvirus","id":1764731,"avatar_url":"https://avatars.githubusercontent.com/u/1764731?v=3","gravatar_id":"","url":"https://api.github.com/users/bluekvirus","html_url":"https://github.com/bluekvirus","followers_url":"https://api.github.com/users/bluekvirus/followers","following_url":"https://api.github.com/users/bluekvirus/following{/other_user}","gists_url":"https://api.github.com/users/bluekvirus/gists{/gist_id}","starred_url":"https://api.github.com/users/bluekvirus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluekvirus/subscriptions","organizations_url":"https://api.github.com/users/bluekvirus/orgs","repos_url":"https://api.github.com/users/bluekvirus/repos","events_url":"https://api.github.com/users/bluekvirus/events{/privacy}","received_events_url":"https://api.github.com/users/bluekvirus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bluekvirus/jquery","description":"jQuery JavaScript Library","fork":true,"url":"https://api.github.com/repos/bluekvirus/jquery","forks_url":"https://api.github.com/repos/bluekvirus/jquery/forks","keys_url":"https://api.github.com/repos/bluekvirus/jquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bluekvirus/jquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bluekvirus/jquery/teams","hooks_url":"https://api.github.com/repos/bluekvirus/jquery/hooks","issue_events_url":"https://api.github.com/repos/bluekvirus/jquery/issues/events{/number}","events_url":"https://api.github.com/repos/bluekvirus/jquery/events","assignees_url":"https://api.github.com/repos/bluekvirus/jquery/assignees{/user}","branches_url":"https://api.github.com/repos/bluekvirus/jquery/branches{/branch}","tags_url":"https://api.github.com/repos/bluekvirus/jquery/tags","blobs_url":"https://api.github.com/repos/bluekvirus/jquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bluekvirus/jquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bluekvirus/jquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/bluekvirus/jquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bluekvirus/jquery/statuses/{sha}","languages_url":"https://api.github.com/repos/bluekvirus/jquery/languages","stargazers_url":"https://api.github.com/repos/bluekvirus/jquery/stargazers","contributors_url":"https://api.github.com/repos/bluekvirus/jquery/contributors","subscribers_url":"https://api.github.com/repos/bluekvirus/jquery/subscribers","subscription_url":"https://api.github.com/repos/bluekvirus/jquery/subscription","commits_url":"https://api.github.com/repos/bluekvirus/jquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/bluekvirus/jquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/bluekvirus/jquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/bluekvirus/jquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/bluekvirus/jquery/contents/{+path}","compare_url":"https://api.github.com/repos/bluekvirus/jquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bluekvirus/jquery/merges","archive_url":"https://api.github.com/repos/bluekvirus/jquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bluekvirus/jquery/downloads","issues_url":"https://api.github.com/repos/bluekvirus/jquery/issues{/number}","pulls_url":"https://api.github.com/repos/bluekvirus/jquery/pulls{/number}","milestones_url":"https://api.github.com/repos/bluekvirus/jquery/milestones{/number}","notifications_url":"https://api.github.com/repos/bluekvirus/jquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bluekvirus/jquery/labels{/name}","releases_url":"https://api.github.com/repos/bluekvirus/jquery/releases{/id}","deployments_url":"https://api.github.com/repos/bluekvirus/jquery/deployments","created_at":"2016-03-23T20:10:25Z","updated_at":"2016-03-23T20:10:34Z","pushed_at":"2016-03-25T22:21:04Z","git_url":"git://github.com/bluekvirus/jquery.git","ssh_url":"git@github.com:bluekvirus/jquery.git","clone_url":"https://github.com/bluekvirus/jquery.git","svn_url":"https://github.com/bluekvirus/jquery","homepage":"https://jquery.com/","size":24662,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jquery:master","ref":"master","sha":"70526981916945dc4093e116a3de61b1777d4718","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":167174,"name":"jquery","full_name":"jquery/jquery","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/jquery","description":"jQuery JavaScript Library","fork":false,"url":"https://api.github.com/repos/jquery/jquery","forks_url":"https://api.github.com/repos/jquery/jquery/forks","keys_url":"https://api.github.com/repos/jquery/jquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/jquery/teams","hooks_url":"https://api.github.com/repos/jquery/jquery/hooks","issue_events_url":"https://api.github.com/repos/jquery/jquery/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/jquery/events","assignees_url":"https://api.github.com/repos/jquery/jquery/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/jquery/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/jquery/tags","blobs_url":"https://api.github.com/repos/jquery/jquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/jquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/jquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/jquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/jquery/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/jquery/languages","stargazers_url":"https://api.github.com/repos/jquery/jquery/stargazers","contributors_url":"https://api.github.com/repos/jquery/jquery/contributors","subscribers_url":"https://api.github.com/repos/jquery/jquery/subscribers","subscription_url":"https://api.github.com/repos/jquery/jquery/subscription","commits_url":"https://api.github.com/repos/jquery/jquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/jquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/jquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/jquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/jquery/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/jquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/jquery/merges","archive_url":"https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/jquery/downloads","issues_url":"https://api.github.com/repos/jquery/jquery/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/jquery/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/jquery/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/jquery/labels{/name}","releases_url":"https://api.github.com/repos/jquery/jquery/releases{/id}","deployments_url":"https://api.github.com/repos/jquery/jquery/deployments","created_at":"2009-04-03T15:20:14Z","updated_at":"2016-04-08T11:58:17Z","pushed_at":"2016-04-08T10:55:00Z","git_url":"git://github.com/jquery/jquery.git","ssh_url":"git@github.com:jquery/jquery.git","clone_url":"https://github.com/jquery/jquery.git","svn_url":"https://github.com/jquery/jquery","homepage":"https://jquery.com/","size":43320,"stargazers_count":38876,"watchers_count":38876,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":10325,"mirror_url":null,"open_issues_count":59,"forks":10325,"open_issues":59,"watchers":38876,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3015"},"html":{"href":"https://github.com/jquery/jquery/pull/3015"},"issue":{"href":"https://api.github.com/repos/jquery/jquery/issues/3015"},"comments":{"href":"https://api.github.com/repos/jquery/jquery/issues/3015/comments"},"review_comments":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3015/comments"},"review_comment":{"href":"https://api.github.com/repos/jquery/jquery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3015/commits"},"statuses":{"href":"https://api.github.com/repos/jquery/jquery/statuses/d20c10bfa25708a74b3fc9cf496011951fcd2e46"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":15,"review_comments":2,"commits":2,"additions":74,"deletions":69,"changed_files":3}}