{"action":"created","comment":{"url":"https://api.github.com/repos/angular/zone.js/pulls/comments/29861151","id":29861151,"diff_hunk":"@@ -0,0 +1,40 @@\n+'use strict';\n+\n+(function() {\n+  // patch jasmine's it and fit functions so that the `done` callback always resets the zone\n+  // to the jasmine zone, which should be the root zone.\n+\n+  var jasmineZone = window.zone;\n+  var originalIt = window.it;\n+  var originalFit = window.fit;\n+\n+  window.it = function zoneResettingIt(description, specFn) {\n+    if (specFn.length) {\n+      originalIt(description, function zoneResettingSpecFn(originalDone) {\n+        specFn(function zoneResettingDone() {\n+          jasmineZone.run(originalDone);\n+        });\n+      });\n+    } else {\n+      originalIt(description, specFn);  \n+    }\n+  };\n+\n+  window.fit = function zoneResettingFit(description, specFn) {\n+    if (specFn.length) {\n+      originalFit(description, function zoneResettingSpecFn(originalDone) {\n+        specFn(function zoneResettingDone() {\n+          jasmineZone.run(originalDone);\n+        });\n+      });\n+    } else {\n+      originalFit(description, specFn);  \n+    }\n+  };\n+\n+}(window));\n+\n+// global beforeEach to check if we always start from the root zone\n+beforeEach(function() {\n+  expect(window.zone.isRootZone()).toBe(true);\n+});","path":"test/jasmine-patch.js","position":40,"original_position":40,"commit_id":"dc9e04bd3c0386762f9c14a96b565301ee87743e","original_commit_id":"dc9e04bd3c0386762f9c14a96b565301ee87743e","user":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"body":"there is a eol","created_at":"2015-05-07T15:08:28Z","updated_at":"2015-05-07T15:08:28Z","html_url":"https://github.com/angular/zone.js/pull/94#discussion_r29861151","pull_request_url":"https://api.github.com/repos/angular/zone.js/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/angular/zone.js/pulls/comments/29861151"},"html":{"href":"https://github.com/angular/zone.js/pull/94#discussion_r29861151"},"pull_request":{"href":"https://api.github.com/repos/angular/zone.js/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/angular/zone.js/pulls/94","id":34582423,"html_url":"https://github.com/angular/zone.js/pull/94","diff_url":"https://github.com/angular/zone.js/pull/94.diff","patch_url":"https://github.com/angular/zone.js/pull/94.patch","issue_url":"https://api.github.com/repos/angular/zone.js/issues/94","number":94,"state":"open","locked":false,"title":"don't spawn child zones from the root zone automatically for callabacks + don't leak zones in async jasmine tests","user":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-02T07:26:09Z","updated_at":"2015-05-07T15:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd57797f61c0d382dbaefa698229f91c33e278f0","assignee":{"login":"btford","id":474988,"avatar_url":"https://avatars.githubusercontent.com/u/474988?v=3","gravatar_id":"","url":"https://api.github.com/users/btford","html_url":"https://github.com/btford","followers_url":"https://api.github.com/users/btford/followers","following_url":"https://api.github.com/users/btford/following{/other_user}","gists_url":"https://api.github.com/users/btford/gists{/gist_id}","starred_url":"https://api.github.com/users/btford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btford/subscriptions","organizations_url":"https://api.github.com/users/btford/orgs","repos_url":"https://api.github.com/users/btford/repos","events_url":"https://api.github.com/users/btford/events{/privacy}","received_events_url":"https://api.github.com/users/btford/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/angular/zone.js/pulls/94/commits","review_comments_url":"https://api.github.com/repos/angular/zone.js/pulls/94/comments","review_comment_url":"https://api.github.com/repos/angular/zone.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/zone.js/issues/94/comments","statuses_url":"https://api.github.com/repos/angular/zone.js/statuses/dc9e04bd3c0386762f9c14a96b565301ee87743e","head":{"label":"IgorMinar:root-zone-no-wrap","ref":"root-zone-no-wrap","sha":"dc9e04bd3c0386762f9c14a96b565301ee87743e","user":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"repo":{"id":34871667,"name":"zone.js","full_name":"IgorMinar/zone.js","owner":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IgorMinar/zone.js","description":"Implements Zones for JavaScript","fork":true,"url":"https://api.github.com/repos/IgorMinar/zone.js","forks_url":"https://api.github.com/repos/IgorMinar/zone.js/forks","keys_url":"https://api.github.com/repos/IgorMinar/zone.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IgorMinar/zone.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IgorMinar/zone.js/teams","hooks_url":"https://api.github.com/repos/IgorMinar/zone.js/hooks","issue_events_url":"https://api.github.com/repos/IgorMinar/zone.js/issues/events{/number}","events_url":"https://api.github.com/repos/IgorMinar/zone.js/events","assignees_url":"https://api.github.com/repos/IgorMinar/zone.js/assignees{/user}","branches_url":"https://api.github.com/repos/IgorMinar/zone.js/branches{/branch}","tags_url":"https://api.github.com/repos/IgorMinar/zone.js/tags","blobs_url":"https://api.github.com/repos/IgorMinar/zone.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IgorMinar/zone.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IgorMinar/zone.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/IgorMinar/zone.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IgorMinar/zone.js/statuses/{sha}","languages_url":"https://api.github.com/repos/IgorMinar/zone.js/languages","stargazers_url":"https://api.github.com/repos/IgorMinar/zone.js/stargazers","contributors_url":"https://api.github.com/repos/IgorMinar/zone.js/contributors","subscribers_url":"https://api.github.com/repos/IgorMinar/zone.js/subscribers","subscription_url":"https://api.github.com/repos/IgorMinar/zone.js/subscription","commits_url":"https://api.github.com/repos/IgorMinar/zone.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/IgorMinar/zone.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/IgorMinar/zone.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/IgorMinar/zone.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/IgorMinar/zone.js/contents/{+path}","compare_url":"https://api.github.com/repos/IgorMinar/zone.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IgorMinar/zone.js/merges","archive_url":"https://api.github.com/repos/IgorMinar/zone.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IgorMinar/zone.js/downloads","issues_url":"https://api.github.com/repos/IgorMinar/zone.js/issues{/number}","pulls_url":"https://api.github.com/repos/IgorMinar/zone.js/pulls{/number}","milestones_url":"https://api.github.com/repos/IgorMinar/zone.js/milestones{/number}","notifications_url":"https://api.github.com/repos/IgorMinar/zone.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IgorMinar/zone.js/labels{/name}","releases_url":"https://api.github.com/repos/IgorMinar/zone.js/releases{/id}","created_at":"2015-04-30T19:08:04Z","updated_at":"2015-04-30T19:14:31Z","pushed_at":"2015-05-02T09:08:54Z","git_url":"git://github.com/IgorMinar/zone.js.git","ssh_url":"git@github.com:IgorMinar/zone.js.git","clone_url":"https://github.com/IgorMinar/zone.js.git","svn_url":"https://github.com/IgorMinar/zone.js","homepage":"https://github.com/angular/zone.js","size":464,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"c26c7acb2932b7eb1f291108eee2f75810a459ae","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":15467734,"name":"zone.js","full_name":"angular/zone.js","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/zone.js","description":"Implements Zones for JavaScript","fork":false,"url":"https://api.github.com/repos/angular/zone.js","forks_url":"https://api.github.com/repos/angular/zone.js/forks","keys_url":"https://api.github.com/repos/angular/zone.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/zone.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/zone.js/teams","hooks_url":"https://api.github.com/repos/angular/zone.js/hooks","issue_events_url":"https://api.github.com/repos/angular/zone.js/issues/events{/number}","events_url":"https://api.github.com/repos/angular/zone.js/events","assignees_url":"https://api.github.com/repos/angular/zone.js/assignees{/user}","branches_url":"https://api.github.com/repos/angular/zone.js/branches{/branch}","tags_url":"https://api.github.com/repos/angular/zone.js/tags","blobs_url":"https://api.github.com/repos/angular/zone.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/zone.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/zone.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/zone.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/zone.js/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/zone.js/languages","stargazers_url":"https://api.github.com/repos/angular/zone.js/stargazers","contributors_url":"https://api.github.com/repos/angular/zone.js/contributors","subscribers_url":"https://api.github.com/repos/angular/zone.js/subscribers","subscription_url":"https://api.github.com/repos/angular/zone.js/subscription","commits_url":"https://api.github.com/repos/angular/zone.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/zone.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/zone.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/zone.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/zone.js/contents/{+path}","compare_url":"https://api.github.com/repos/angular/zone.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/zone.js/merges","archive_url":"https://api.github.com/repos/angular/zone.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/zone.js/downloads","issues_url":"https://api.github.com/repos/angular/zone.js/issues{/number}","pulls_url":"https://api.github.com/repos/angular/zone.js/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/zone.js/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/zone.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/zone.js/labels{/name}","releases_url":"https://api.github.com/repos/angular/zone.js/releases{/id}","created_at":"2013-12-27T06:08:07Z","updated_at":"2015-05-06T01:46:54Z","pushed_at":"2015-05-06T16:03:33Z","git_url":"git://github.com/angular/zone.js.git","ssh_url":"git@github.com:angular/zone.js.git","clone_url":"https://github.com/angular/zone.js.git","svn_url":"https://github.com/angular/zone.js","homepage":"https://github.com/angular/zone.js","size":1657,"stargazers_count":709,"watchers_count":709,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":41,"forks":49,"open_issues":41,"watchers":709,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/zone.js/pulls/94"},"html":{"href":"https://github.com/angular/zone.js/pull/94"},"issue":{"href":"https://api.github.com/repos/angular/zone.js/issues/94"},"comments":{"href":"https://api.github.com/repos/angular/zone.js/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/zone.js/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/zone.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/zone.js/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/angular/zone.js/statuses/dc9e04bd3c0386762f9c14a96b565301ee87743e"}}}}