{"action":"created","comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments/76775464","id":76775464,"diff_hunk":"@@ -0,0 +1,64 @@\n+import { addClass, elt, removeChildren, rmClass } from \"./util/dom\";\n+import { on } from \"./util/event\";\n+import { clearCaches } from \"./measurement/position_measurement\";\n+import { setScrollLeft, setScrollTop } from \"./scroll_events\";\n+import { scrollbarModel } from \"./display/scrollbars\";\n+import { updateGutterSpace } from \"./display/update_display\";\n+import { indexOf } from \"./util/misc\";\n+\n+export function initScrollbars(cm) {","path":"src/cm_utils.js","position":9,"original_position":9,"commit_id":"0c695efd3523c8bdbcebf354eede6e1e22cbbc56","original_commit_id":"861c166aeb320a19648890b73cf57c749410f2bb","user":{"login":"adrianheine","id":139208,"avatar_url":"https://avatars.githubusercontent.com/u/139208?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianheine","html_url":"https://github.com/adrianheine","followers_url":"https://api.github.com/users/adrianheine/followers","following_url":"https://api.github.com/users/adrianheine/following{/other_user}","gists_url":"https://api.github.com/users/adrianheine/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianheine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianheine/subscriptions","organizations_url":"https://api.github.com/users/adrianheine/orgs","repos_url":"https://api.github.com/users/adrianheine/repos","events_url":"https://api.github.com/users/adrianheine/events{/privacy}","received_events_url":"https://api.github.com/users/adrianheine/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-08-30T11:18:13Z","updated_at":"2016-08-30T11:18:13Z","html_url":"https://github.com/codemirror/CodeMirror/pull/4200#discussion_r76775464","pull_request_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200","_links":{"self":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments/76775464"},"html":{"href":"https://github.com/codemirror/CodeMirror/pull/4200#discussion_r76775464"},"pull_request":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200"}}},"pull_request":{"url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200","id":82669131,"html_url":"https://github.com/codemirror/CodeMirror/pull/4200","diff_url":"https://github.com/codemirror/CodeMirror/pull/4200.diff","patch_url":"https://github.com/codemirror/CodeMirror/pull/4200.patch","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4200","number":4200,"state":"open","locked":false,"title":"Split into ES6 modules (Closes #747)","user":{"login":"adrianheine","id":139208,"avatar_url":"https://avatars.githubusercontent.com/u/139208?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianheine","html_url":"https://github.com/adrianheine","followers_url":"https://api.github.com/users/adrianheine/followers","following_url":"https://api.github.com/users/adrianheine/following{/other_user}","gists_url":"https://api.github.com/users/adrianheine/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianheine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianheine/subscriptions","organizations_url":"https://api.github.com/users/adrianheine/orgs","repos_url":"https://api.github.com/users/adrianheine/repos","events_url":"https://api.github.com/users/adrianheine/events{/privacy}","received_events_url":"https://api.github.com/users/adrianheine/received_events","type":"User","site_admin":false},"body":"This is work in progress and more hitting with a hammer than slicing with a knife. Specific questions:\r\n  * Default exports or not? (See Pos)\r\n  * Are the CodeMirror.* properties going to stay in the long run or should they be kept separately and eventually removed?\r\n\r\nTests pass for me except core_lineWidgetChanged and vim_zb_to_bottom, but they both fail for me on master, too.","created_at":"2016-08-25T07:26:02Z","updated_at":"2016-08-30T11:18:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ce0b9066eb797ea2da36754042224a445f95bd7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200/commits","review_comments_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200/comments","review_comment_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4200/comments","statuses_url":"https://api.github.com/repos/codemirror/CodeMirror/statuses/0c695efd3523c8bdbcebf354eede6e1e22cbbc56","head":{"label":"codemirror:es6Modules","ref":"es6Modules","sha":"0c695efd3523c8bdbcebf354eede6e1e22cbbc56","user":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"repo":{"id":1254497,"name":"CodeMirror","full_name":"codemirror/CodeMirror","owner":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codemirror/CodeMirror","description":"In-browser code editor","fork":false,"url":"https://api.github.com/repos/codemirror/CodeMirror","forks_url":"https://api.github.com/repos/codemirror/CodeMirror/forks","keys_url":"https://api.github.com/repos/codemirror/CodeMirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codemirror/CodeMirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codemirror/CodeMirror/teams","hooks_url":"https://api.github.com/repos/codemirror/CodeMirror/hooks","issue_events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/events{/number}","events_url":"https://api.github.com/repos/codemirror/CodeMirror/events","assignees_url":"https://api.github.com/repos/codemirror/CodeMirror/assignees{/user}","branches_url":"https://api.github.com/repos/codemirror/CodeMirror/branches{/branch}","tags_url":"https://api.github.com/repos/codemirror/CodeMirror/tags","blobs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codemirror/CodeMirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/codemirror/CodeMirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codemirror/CodeMirror/statuses/{sha}","languages_url":"https://api.github.com/repos/codemirror/CodeMirror/languages","stargazers_url":"https://api.github.com/repos/codemirror/CodeMirror/stargazers","contributors_url":"https://api.github.com/repos/codemirror/CodeMirror/contributors","subscribers_url":"https://api.github.com/repos/codemirror/CodeMirror/subscribers","subscription_url":"https://api.github.com/repos/codemirror/CodeMirror/subscription","commits_url":"https://api.github.com/repos/codemirror/CodeMirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/codemirror/CodeMirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/codemirror/CodeMirror/contents/{+path}","compare_url":"https://api.github.com/repos/codemirror/CodeMirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codemirror/CodeMirror/merges","archive_url":"https://api.github.com/repos/codemirror/CodeMirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codemirror/CodeMirror/downloads","issues_url":"https://api.github.com/repos/codemirror/CodeMirror/issues{/number}","pulls_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls{/number}","milestones_url":"https://api.github.com/repos/codemirror/CodeMirror/milestones{/number}","notifications_url":"https://api.github.com/repos/codemirror/CodeMirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/labels{/name}","releases_url":"https://api.github.com/repos/codemirror/CodeMirror/releases{/id}","deployments_url":"https://api.github.com/repos/codemirror/CodeMirror/deployments","created_at":"2011-01-14T13:44:03Z","updated_at":"2016-08-30T10:46:00Z","pushed_at":"2016-08-29T16:27:20Z","git_url":"git://github.com/codemirror/CodeMirror.git","ssh_url":"git@github.com:codemirror/CodeMirror.git","clone_url":"https://github.com/codemirror/CodeMirror.git","svn_url":"https://github.com/codemirror/CodeMirror","homepage":"http://codemirror.net/","size":25941,"stargazers_count":9789,"watchers_count":9789,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2488,"mirror_url":null,"open_issues_count":151,"forks":2488,"open_issues":151,"watchers":9789,"default_branch":"master"}},"base":{"label":"codemirror:master","ref":"master","sha":"607d0e8a9fbbd0c5faa2db318937d92337b3cf53","user":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"repo":{"id":1254497,"name":"CodeMirror","full_name":"codemirror/CodeMirror","owner":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codemirror/CodeMirror","description":"In-browser code editor","fork":false,"url":"https://api.github.com/repos/codemirror/CodeMirror","forks_url":"https://api.github.com/repos/codemirror/CodeMirror/forks","keys_url":"https://api.github.com/repos/codemirror/CodeMirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codemirror/CodeMirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codemirror/CodeMirror/teams","hooks_url":"https://api.github.com/repos/codemirror/CodeMirror/hooks","issue_events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/events{/number}","events_url":"https://api.github.com/repos/codemirror/CodeMirror/events","assignees_url":"https://api.github.com/repos/codemirror/CodeMirror/assignees{/user}","branches_url":"https://api.github.com/repos/codemirror/CodeMirror/branches{/branch}","tags_url":"https://api.github.com/repos/codemirror/CodeMirror/tags","blobs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codemirror/CodeMirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/codemirror/CodeMirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codemirror/CodeMirror/statuses/{sha}","languages_url":"https://api.github.com/repos/codemirror/CodeMirror/languages","stargazers_url":"https://api.github.com/repos/codemirror/CodeMirror/stargazers","contributors_url":"https://api.github.com/repos/codemirror/CodeMirror/contributors","subscribers_url":"https://api.github.com/repos/codemirror/CodeMirror/subscribers","subscription_url":"https://api.github.com/repos/codemirror/CodeMirror/subscription","commits_url":"https://api.github.com/repos/codemirror/CodeMirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/codemirror/CodeMirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments{/number}","contents_url":"https://api.github.com/repos/codemirror/CodeMirror/contents/{+path}","compare_url":"https://api.github.com/repos/codemirror/CodeMirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codemirror/CodeMirror/merges","archive_url":"https://api.github.com/repos/codemirror/CodeMirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codemirror/CodeMirror/downloads","issues_url":"https://api.github.com/repos/codemirror/CodeMirror/issues{/number}","pulls_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls{/number}","milestones_url":"https://api.github.com/repos/codemirror/CodeMirror/milestones{/number}","notifications_url":"https://api.github.com/repos/codemirror/CodeMirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/labels{/name}","releases_url":"https://api.github.com/repos/codemirror/CodeMirror/releases{/id}","deployments_url":"https://api.github.com/repos/codemirror/CodeMirror/deployments","created_at":"2011-01-14T13:44:03Z","updated_at":"2016-08-30T10:46:00Z","pushed_at":"2016-08-29T16:27:20Z","git_url":"git://github.com/codemirror/CodeMirror.git","ssh_url":"git@github.com:codemirror/CodeMirror.git","clone_url":"https://github.com/codemirror/CodeMirror.git","svn_url":"https://github.com/codemirror/CodeMirror","homepage":"http://codemirror.net/","size":25941,"stargazers_count":9789,"watchers_count":9789,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2488,"mirror_url":null,"open_issues_count":151,"forks":2488,"open_issues":151,"watchers":9789,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200"},"html":{"href":"https://github.com/codemirror/CodeMirror/pull/4200"},"issue":{"href":"https://api.github.com/repos/codemirror/CodeMirror/issues/4200"},"comments":{"href":"https://api.github.com/repos/codemirror/CodeMirror/issues/4200/comments"},"review_comments":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200/comments"},"review_comment":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/4200/commits"},"statuses":{"href":"https://api.github.com/repos/codemirror/CodeMirror/statuses/0c695efd3523c8bdbcebf354eede6e1e22cbbc56"}}}}
{"actor":{"display_login":"adrianheine"}}