{"action":"created","comment":{"url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/comments/130782679","pull_request_review_id":53695179,"id":130782679,"diff_hunk":"@@ -1,31 +1,121 @@\n # Cycle DOM\n \n-A Cycle.js driver to enable interaction with the DOM. The driver is based on [snabbdom](https://github.com/paldepind/snabbdom/) as the Virtual DOM library.\n+一个用来和 DOM 相互作用的 Cycle.js 驱动。驱动基于 [snabbdom](https://github.com/snabbdom/snabbdom) 作为虚拟 DOM 库。\n \n ```\n npm install @cycle/dom\n ```\n \n-## Browser support\n+## 浏览器支持\n \n-These are the browsers we officially support currently. Cycle.js may not work (or may work partially) in other browsers.\n+这些是目前我们官方支持的浏览器。在其他浏览器中 Cycle.js 可能无法使用（或使用部分功能）。\n \n [![Sauce Test Status](https://saucelabs.com/browser-matrix/cyclejs-dom.svg)](https://saucelabs.com/u/cyclejs-dom)\n \n-# Isolation semantics\n+# 隔离语义\n \n-Cycle DOM supports isolation between components using the `@cycle/isolate` package. Here is how isolation contexts work in Cycle DOM given a `scope` to `isolate(Component, scope)`:\n+通过使用 `@cycle/isolate` 包，Cycle DOM 支持组件之间的隔离。Cycle DOM 中，隔离上下文取决于传给 `isolate(Component, scope)` 的 `scope`：\n \n-**When the scope is the `':root'` string: no isolation.**\n+**当作用域是 `':root'` 字符串：没有隔离。**\n \n-The child component will have run in the same context as its parent, and methods like `DOMSource.select()` will inspect the DOM trees of the parent. This means the child component is able to inspect DOM trees that it did not itself produce.\n+子组件将运行在和它父组件同一个上下文中， `DOMSource.select()` 这样的方法将检查父组件的 DOM 树。也就是说子组件能够检查不是自己产生的 DOM 树。\n \n-**When the scope is a selector string (e.g. '.foo' or '#foo'): siblings isolation.**\n+**当作用域是一个选择器字符串（例如：'.foo' 或 '#foo'）：兄弟组件隔离。**\n \n-A `DOMSource.select()` call in a parent component will have access to the DOM trees in both children isolated with \"siblings isolation\" (which means there is no parent-child isolation). However, a `DOMSource.select()` inside a child component isolated with \"siblings isolation\" will have no access to the DOM trees in other children components isolated with \"siblings isolation\".\n+父组件中调用 `DOMSource.select()` 能够获取被 “兄弟组件隔离“ 隔离的子组件（这意味着没有父子隔离）的 DOM 树。然而，一个被 “兄弟组件隔离“ 隔离的子组件中调用 `DOMSource.select()` 无法获取另一个被 “兄弟组件隔离“ 隔离的子组件的 DOM 树.","path":"content/api/dom.md","position":34,"original_position":34,"commit_id":"fe45cfb7a857aac5fe8f89c8041dcbc5b720a015","original_commit_id":"fe45cfb7a857aac5fe8f89c8041dcbc5b720a015","user":{"login":"jasonxia23","id":15098719,"avatar_url":"https://avatars1.githubusercontent.com/u/15098719?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonxia23","html_url":"https://github.com/jasonxia23","followers_url":"https://api.github.com/users/jasonxia23/followers","following_url":"https://api.github.com/users/jasonxia23/following{/other_user}","gists_url":"https://api.github.com/users/jasonxia23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxia23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxia23/subscriptions","organizations_url":"https://api.github.com/users/jasonxia23/orgs","repos_url":"https://api.github.com/users/jasonxia23/repos","events_url":"https://api.github.com/users/jasonxia23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxia23/received_events","type":"User","site_admin":false},"body":"我觉得（这意味着不存在父子组件隔离）这个应该是修饰兄弟组件隔离的所以应该放在兄弟组件隔离后面","created_at":"2017-08-02T04:21:47Z","updated_at":"2017-08-02T04:21:48Z","html_url":"https://github.com/CyclejsCN/cyclejs.cn/pull/20#discussion_r130782679","pull_request_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/comments/130782679"},"html":{"href":"https://github.com/CyclejsCN/cyclejs.cn/pull/20#discussion_r130782679"},"pull_request":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20","id":131465815,"html_url":"https://github.com/CyclejsCN/cyclejs.cn/pull/20","diff_url":"https://github.com/CyclejsCN/cyclejs.cn/pull/20.diff","patch_url":"https://github.com/CyclejsCN/cyclejs.cn/pull/20.patch","issue_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/20","number":20,"state":"open","locked":false,"title":"[trans]: dom","user":{"login":"jasonxia23","id":15098719,"avatar_url":"https://avatars1.githubusercontent.com/u/15098719?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonxia23","html_url":"https://github.com/jasonxia23","followers_url":"https://api.github.com/users/jasonxia23/followers","following_url":"https://api.github.com/users/jasonxia23/following{/other_user}","gists_url":"https://api.github.com/users/jasonxia23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxia23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxia23/subscriptions","organizations_url":"https://api.github.com/users/jasonxia23/orgs","repos_url":"https://api.github.com/users/jasonxia23/repos","events_url":"https://api.github.com/users/jasonxia23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxia23/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-20T04:04:10Z","updated_at":"2017-08-02T04:21:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d6feaec67820ef8a599c4a70ba55c283dd70bc0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20/commits","review_comments_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20/comments","review_comment_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/20/comments","statuses_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/statuses/fe45cfb7a857aac5fe8f89c8041dcbc5b720a015","head":{"label":"jasonxia23:xia/translation","ref":"xia/translation","sha":"fe45cfb7a857aac5fe8f89c8041dcbc5b720a015","user":{"login":"jasonxia23","id":15098719,"avatar_url":"https://avatars1.githubusercontent.com/u/15098719?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonxia23","html_url":"https://github.com/jasonxia23","followers_url":"https://api.github.com/users/jasonxia23/followers","following_url":"https://api.github.com/users/jasonxia23/following{/other_user}","gists_url":"https://api.github.com/users/jasonxia23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxia23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxia23/subscriptions","organizations_url":"https://api.github.com/users/jasonxia23/orgs","repos_url":"https://api.github.com/users/jasonxia23/repos","events_url":"https://api.github.com/users/jasonxia23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxia23/received_events","type":"User","site_admin":false},"repo":{"id":97593521,"name":"cyclejs.cn","full_name":"jasonxia23/cyclejs.cn","owner":{"login":"jasonxia23","id":15098719,"avatar_url":"https://avatars1.githubusercontent.com/u/15098719?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonxia23","html_url":"https://github.com/jasonxia23","followers_url":"https://api.github.com/users/jasonxia23/followers","following_url":"https://api.github.com/users/jasonxia23/following{/other_user}","gists_url":"https://api.github.com/users/jasonxia23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxia23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxia23/subscriptions","organizations_url":"https://api.github.com/users/jasonxia23/orgs","repos_url":"https://api.github.com/users/jasonxia23/repos","events_url":"https://api.github.com/users/jasonxia23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxia23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jasonxia23/cyclejs.cn","description":"The Cycle.js Chinese documentation website.","fork":true,"url":"https://api.github.com/repos/jasonxia23/cyclejs.cn","forks_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/forks","keys_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/teams","hooks_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/hooks","issue_events_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/issues/events{/number}","events_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/events","assignees_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/assignees{/user}","branches_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/branches{/branch}","tags_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/tags","blobs_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/statuses/{sha}","languages_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/languages","stargazers_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/stargazers","contributors_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/contributors","subscribers_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/subscribers","subscription_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/subscription","commits_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/issues/comments{/number}","contents_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/contents/{+path}","compare_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/merges","archive_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/downloads","issues_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/issues{/number}","pulls_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/pulls{/number}","milestones_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/milestones{/number}","notifications_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/labels{/name}","releases_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/releases{/id}","deployments_url":"https://api.github.com/repos/jasonxia23/cyclejs.cn/deployments","created_at":"2017-07-18T12:08:08Z","updated_at":"2017-07-18T12:08:10Z","pushed_at":"2017-07-20T04:01:27Z","git_url":"git://github.com/jasonxia23/cyclejs.cn.git","ssh_url":"git@github.com:jasonxia23/cyclejs.cn.git","clone_url":"https://github.com/jasonxia23/cyclejs.cn.git","svn_url":"https://github.com/jasonxia23/cyclejs.cn","homepage":"http://cyclejs.cn","size":427,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"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":0,"default_branch":"master"}},"base":{"label":"CyclejsCN:master","ref":"master","sha":"7e3feda513a98edee3947dfb54345dcf75648f02","user":{"login":"CyclejsCN","id":29514680,"avatar_url":"https://avatars0.githubusercontent.com/u/29514680?v=4","gravatar_id":"","url":"https://api.github.com/users/CyclejsCN","html_url":"https://github.com/CyclejsCN","followers_url":"https://api.github.com/users/CyclejsCN/followers","following_url":"https://api.github.com/users/CyclejsCN/following{/other_user}","gists_url":"https://api.github.com/users/CyclejsCN/gists{/gist_id}","starred_url":"https://api.github.com/users/CyclejsCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyclejsCN/subscriptions","organizations_url":"https://api.github.com/users/CyclejsCN/orgs","repos_url":"https://api.github.com/users/CyclejsCN/repos","events_url":"https://api.github.com/users/CyclejsCN/events{/privacy}","received_events_url":"https://api.github.com/users/CyclejsCN/received_events","type":"Organization","site_admin":false},"repo":{"id":94663710,"name":"cyclejs.cn","full_name":"CyclejsCN/cyclejs.cn","owner":{"login":"CyclejsCN","id":29514680,"avatar_url":"https://avatars0.githubusercontent.com/u/29514680?v=4","gravatar_id":"","url":"https://api.github.com/users/CyclejsCN","html_url":"https://github.com/CyclejsCN","followers_url":"https://api.github.com/users/CyclejsCN/followers","following_url":"https://api.github.com/users/CyclejsCN/following{/other_user}","gists_url":"https://api.github.com/users/CyclejsCN/gists{/gist_id}","starred_url":"https://api.github.com/users/CyclejsCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyclejsCN/subscriptions","organizations_url":"https://api.github.com/users/CyclejsCN/orgs","repos_url":"https://api.github.com/users/CyclejsCN/repos","events_url":"https://api.github.com/users/CyclejsCN/events{/privacy}","received_events_url":"https://api.github.com/users/CyclejsCN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CyclejsCN/cyclejs.cn","description":"The Cycle.js Chinese documentation website.","fork":false,"url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn","forks_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/forks","keys_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/teams","hooks_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/hooks","issue_events_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/events{/number}","events_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/events","assignees_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/assignees{/user}","branches_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/branches{/branch}","tags_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/tags","blobs_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/git/refs{/sha}","trees_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/statuses/{sha}","languages_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/languages","stargazers_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/stargazers","contributors_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/contributors","subscribers_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/subscribers","subscription_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/subscription","commits_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/commits{/sha}","git_commits_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/git/commits{/sha}","comments_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/comments{/number}","issue_comment_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/comments{/number}","contents_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/contents/{+path}","compare_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/merges","archive_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/downloads","issues_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues{/number}","pulls_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls{/number}","milestones_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/milestones{/number}","notifications_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/labels{/name}","releases_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/releases{/id}","deployments_url":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/deployments","created_at":"2017-06-18T03:55:39Z","updated_at":"2017-08-02T03:47:54Z","pushed_at":"2017-08-02T04:04:48Z","git_url":"git://github.com/CyclejsCN/cyclejs.cn.git","ssh_url":"git@github.com:CyclejsCN/cyclejs.cn.git","clone_url":"https://github.com/CyclejsCN/cyclejs.cn.git","svn_url":"https://github.com/CyclejsCN/cyclejs.cn","homepage":"http://cyclejs.cn","size":492,"stargazers_count":95,"watchers_count":95,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":21,"forks":24,"open_issues":21,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20"},"html":{"href":"https://github.com/CyclejsCN/cyclejs.cn/pull/20"},"issue":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/20"},"comments":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/CyclejsCN/cyclejs.cn/statuses/fe45cfb7a857aac5fe8f89c8041dcbc5b720a015"}}}}
{"actor":{"display_login":"jasonxia23"}}