{"action":"created","comment":{"url":"https://api.github.com/repos/yandex-ui/noscript/pulls/comments/60914727","id":60914727,"diff_hunk":"@@ -681,14 +682,14 @@\n             currentUpdates = survivedRuns;\n \n         } else if (newRunExecutionFlag === FLAG_ASYNC) { // async update\n-\n-            // check whether we have one global update\n-            for (i = 0, j = currentRuns.length; i < j; i++) {\n-                if (currentRuns[i].EXEC_FLAG === FLAG_GLOBAL) {\n-                    return false;\n+            if (!checkParentExecFlag(newUpdate, FLAG_PARALLEL)) {\n+                // check whether we have one global update\n+                for (i = 0, j = currentRuns.length; i < j; i++) {\n+                    if (currentRuns[i].EXEC_FLAG === FLAG_GLOBAL) {","path":"src/ns.update.js","position":29,"original_position":29,"commit_id":"2d3dc2e10eb48ca5cacc37e5a13fa3e151f5c78a","original_commit_id":"2d3dc2e10eb48ca5cacc37e5a13fa3e151f5c78a","user":{"login":"chestozo","id":498934,"avatar_url":"https://avatars.githubusercontent.com/u/498934?v=3","gravatar_id":"","url":"https://api.github.com/users/chestozo","html_url":"https://github.com/chestozo","followers_url":"https://api.github.com/users/chestozo/followers","following_url":"https://api.github.com/users/chestozo/following{/other_user}","gists_url":"https://api.github.com/users/chestozo/gists{/gist_id}","starred_url":"https://api.github.com/users/chestozo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chestozo/subscriptions","organizations_url":"https://api.github.com/users/chestozo/orgs","repos_url":"https://api.github.com/users/chestozo/repos","events_url":"https://api.github.com/users/chestozo/events{/privacy}","received_events_url":"https://api.github.com/users/chestozo/received_events","type":"User","site_admin":false},"body":"Может и тут тогда `checkParentExecFlag` заиспользовать?","created_at":"2016-04-25T13:46:10Z","updated_at":"2016-04-25T13:46:10Z","html_url":"https://github.com/yandex-ui/noscript/pull/589#discussion_r60914727","pull_request_url":"https://api.github.com/repos/yandex-ui/noscript/pulls/589","_links":{"self":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/comments/60914727"},"html":{"href":"https://github.com/yandex-ui/noscript/pull/589#discussion_r60914727"},"pull_request":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/589"}}},"pull_request":{"url":"https://api.github.com/repos/yandex-ui/noscript/pulls/589","id":67702135,"html_url":"https://github.com/yandex-ui/noscript/pull/589","diff_url":"https://github.com/yandex-ui/noscript/pull/589.diff","patch_url":"https://github.com/yandex-ui/noscript/pull/589.patch","issue_url":"https://api.github.com/repos/yandex-ui/noscript/issues/589","number":589,"state":"open","locked":false,"title":"Не отменять async обновления, если они запущены из parallel обновления","user":{"login":"Katochimoto","id":1448645,"avatar_url":"https://avatars.githubusercontent.com/u/1448645?v=3","gravatar_id":"","url":"https://api.github.com/users/Katochimoto","html_url":"https://github.com/Katochimoto","followers_url":"https://api.github.com/users/Katochimoto/followers","following_url":"https://api.github.com/users/Katochimoto/following{/other_user}","gists_url":"https://api.github.com/users/Katochimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/Katochimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katochimoto/subscriptions","organizations_url":"https://api.github.com/users/Katochimoto/orgs","repos_url":"https://api.github.com/users/Katochimoto/repos","events_url":"https://api.github.com/users/Katochimoto/events{/privacy}","received_events_url":"https://api.github.com/users/Katochimoto/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T11:12:07Z","updated_at":"2016-04-25T13:46:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3040de126b2c3dbf5433240ccc6da9ba7374a4e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yandex-ui/noscript/pulls/589/commits","review_comments_url":"https://api.github.com/repos/yandex-ui/noscript/pulls/589/comments","review_comment_url":"https://api.github.com/repos/yandex-ui/noscript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex-ui/noscript/issues/589/comments","statuses_url":"https://api.github.com/repos/yandex-ui/noscript/statuses/2d3dc2e10eb48ca5cacc37e5a13fa3e151f5c78a","head":{"label":"yandex-ui:async_update","ref":"async_update","sha":"2d3dc2e10eb48ca5cacc37e5a13fa3e151f5c78a","user":{"login":"yandex-ui","id":914728,"avatar_url":"https://avatars.githubusercontent.com/u/914728?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-ui","html_url":"https://github.com/yandex-ui","followers_url":"https://api.github.com/users/yandex-ui/followers","following_url":"https://api.github.com/users/yandex-ui/following{/other_user}","gists_url":"https://api.github.com/users/yandex-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-ui/subscriptions","organizations_url":"https://api.github.com/users/yandex-ui/orgs","repos_url":"https://api.github.com/users/yandex-ui/repos","events_url":"https://api.github.com/users/yandex-ui/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-ui/received_events","type":"Organization","site_admin":false},"repo":{"id":2283674,"name":"noscript","full_name":"yandex-ui/noscript","owner":{"login":"yandex-ui","id":914728,"avatar_url":"https://avatars.githubusercontent.com/u/914728?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-ui","html_url":"https://github.com/yandex-ui","followers_url":"https://api.github.com/users/yandex-ui/followers","following_url":"https://api.github.com/users/yandex-ui/following{/other_user}","gists_url":"https://api.github.com/users/yandex-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-ui/subscriptions","organizations_url":"https://api.github.com/users/yandex-ui/orgs","repos_url":"https://api.github.com/users/yandex-ui/repos","events_url":"https://api.github.com/users/yandex-ui/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-ui/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-ui/noscript","description":"noscript","fork":false,"url":"https://api.github.com/repos/yandex-ui/noscript","forks_url":"https://api.github.com/repos/yandex-ui/noscript/forks","keys_url":"https://api.github.com/repos/yandex-ui/noscript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-ui/noscript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-ui/noscript/teams","hooks_url":"https://api.github.com/repos/yandex-ui/noscript/hooks","issue_events_url":"https://api.github.com/repos/yandex-ui/noscript/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-ui/noscript/events","assignees_url":"https://api.github.com/repos/yandex-ui/noscript/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-ui/noscript/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-ui/noscript/tags","blobs_url":"https://api.github.com/repos/yandex-ui/noscript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-ui/noscript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-ui/noscript/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-ui/noscript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-ui/noscript/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-ui/noscript/languages","stargazers_url":"https://api.github.com/repos/yandex-ui/noscript/stargazers","contributors_url":"https://api.github.com/repos/yandex-ui/noscript/contributors","subscribers_url":"https://api.github.com/repos/yandex-ui/noscript/subscribers","subscription_url":"https://api.github.com/repos/yandex-ui/noscript/subscription","commits_url":"https://api.github.com/repos/yandex-ui/noscript/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-ui/noscript/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-ui/noscript/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-ui/noscript/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-ui/noscript/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-ui/noscript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-ui/noscript/merges","archive_url":"https://api.github.com/repos/yandex-ui/noscript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-ui/noscript/downloads","issues_url":"https://api.github.com/repos/yandex-ui/noscript/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-ui/noscript/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-ui/noscript/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-ui/noscript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-ui/noscript/labels{/name}","releases_url":"https://api.github.com/repos/yandex-ui/noscript/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-ui/noscript/deployments","created_at":"2011-08-28T14:55:35Z","updated_at":"2015-11-17T14:07:53Z","pushed_at":"2016-04-25T12:59:14Z","git_url":"git://github.com/yandex-ui/noscript.git","ssh_url":"git@github.com:yandex-ui/noscript.git","clone_url":"https://github.com/yandex-ui/noscript.git","svn_url":"https://github.com/yandex-ui/noscript","homepage":"","size":6900,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":108,"forks":23,"open_issues":108,"watchers":31,"default_branch":"master"}},"base":{"label":"yandex-ui:master","ref":"master","sha":"088782ceb8215beffc5055d3241c217bdf094aac","user":{"login":"yandex-ui","id":914728,"avatar_url":"https://avatars.githubusercontent.com/u/914728?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-ui","html_url":"https://github.com/yandex-ui","followers_url":"https://api.github.com/users/yandex-ui/followers","following_url":"https://api.github.com/users/yandex-ui/following{/other_user}","gists_url":"https://api.github.com/users/yandex-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-ui/subscriptions","organizations_url":"https://api.github.com/users/yandex-ui/orgs","repos_url":"https://api.github.com/users/yandex-ui/repos","events_url":"https://api.github.com/users/yandex-ui/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-ui/received_events","type":"Organization","site_admin":false},"repo":{"id":2283674,"name":"noscript","full_name":"yandex-ui/noscript","owner":{"login":"yandex-ui","id":914728,"avatar_url":"https://avatars.githubusercontent.com/u/914728?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-ui","html_url":"https://github.com/yandex-ui","followers_url":"https://api.github.com/users/yandex-ui/followers","following_url":"https://api.github.com/users/yandex-ui/following{/other_user}","gists_url":"https://api.github.com/users/yandex-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-ui/subscriptions","organizations_url":"https://api.github.com/users/yandex-ui/orgs","repos_url":"https://api.github.com/users/yandex-ui/repos","events_url":"https://api.github.com/users/yandex-ui/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-ui/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-ui/noscript","description":"noscript","fork":false,"url":"https://api.github.com/repos/yandex-ui/noscript","forks_url":"https://api.github.com/repos/yandex-ui/noscript/forks","keys_url":"https://api.github.com/repos/yandex-ui/noscript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-ui/noscript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-ui/noscript/teams","hooks_url":"https://api.github.com/repos/yandex-ui/noscript/hooks","issue_events_url":"https://api.github.com/repos/yandex-ui/noscript/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-ui/noscript/events","assignees_url":"https://api.github.com/repos/yandex-ui/noscript/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-ui/noscript/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-ui/noscript/tags","blobs_url":"https://api.github.com/repos/yandex-ui/noscript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-ui/noscript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-ui/noscript/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-ui/noscript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-ui/noscript/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-ui/noscript/languages","stargazers_url":"https://api.github.com/repos/yandex-ui/noscript/stargazers","contributors_url":"https://api.github.com/repos/yandex-ui/noscript/contributors","subscribers_url":"https://api.github.com/repos/yandex-ui/noscript/subscribers","subscription_url":"https://api.github.com/repos/yandex-ui/noscript/subscription","commits_url":"https://api.github.com/repos/yandex-ui/noscript/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-ui/noscript/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-ui/noscript/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-ui/noscript/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-ui/noscript/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-ui/noscript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-ui/noscript/merges","archive_url":"https://api.github.com/repos/yandex-ui/noscript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-ui/noscript/downloads","issues_url":"https://api.github.com/repos/yandex-ui/noscript/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-ui/noscript/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-ui/noscript/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-ui/noscript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-ui/noscript/labels{/name}","releases_url":"https://api.github.com/repos/yandex-ui/noscript/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-ui/noscript/deployments","created_at":"2011-08-28T14:55:35Z","updated_at":"2015-11-17T14:07:53Z","pushed_at":"2016-04-25T12:59:14Z","git_url":"git://github.com/yandex-ui/noscript.git","ssh_url":"git@github.com:yandex-ui/noscript.git","clone_url":"https://github.com/yandex-ui/noscript.git","svn_url":"https://github.com/yandex-ui/noscript","homepage":"","size":6900,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":108,"forks":23,"open_issues":108,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/589"},"html":{"href":"https://github.com/yandex-ui/noscript/pull/589"},"issue":{"href":"https://api.github.com/repos/yandex-ui/noscript/issues/589"},"comments":{"href":"https://api.github.com/repos/yandex-ui/noscript/issues/589/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/589/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex-ui/noscript/pulls/589/commits"},"statuses":{"href":"https://api.github.com/repos/yandex-ui/noscript/statuses/2d3dc2e10eb48ca5cacc37e5a13fa3e151f5c78a"}}}}