{"action":"created","comment":{"url":"https://api.github.com/repos/latos/editor/pulls/comments/75315413","id":75315413,"diff_hunk":"@@ -712,6 +712,82 @@ Point.prototype.setTo = function(point) {\n   this.offset = point.offset;\n }\n \n+Point.prototype.debug = function(levels) {\n+  levels = levels || 1;\n+  if (this.type === START || this.type === END) {\n+    levels--;\n+  }\n+  var node = this.node;\n+  while (node.parentNode && levels--) {\n+    node = node.parentNode\n+  }\n+  return renderDebugElem(node, this);\n+}\n+\n+function renderDebugNode(node, point) {\n+  var isThisNode = (point.node === node);\n+\n+  var bits = [];\n+\n+  if (isThisNode && point.type === BEFORE) {\n+    bits.push('\\u2192'); // right arrow\n+    //bits.push('[');\n+  }\n+  if (node.nodeType === 1) {\n+    bits.push(renderDebugElem(node, point));\n+  } else if (node.nodeType === 3) {\n+    bits.push(renderDebugTextNode(node, point));\n+  } else {\n+    // TODO other stuff","path":"src/point.js","position":65,"original_position":30,"commit_id":"83c372c03abd00de05e0906d14ce41bc00175900","original_commit_id":"ab8122e35755755cdfbea056d2a2034fbb53d429","user":{"login":"blambo","id":653842,"avatar_url":"https://avatars.githubusercontent.com/u/653842?v=3","gravatar_id":"","url":"https://api.github.com/users/blambo","html_url":"https://github.com/blambo","followers_url":"https://api.github.com/users/blambo/followers","following_url":"https://api.github.com/users/blambo/following{/other_user}","gists_url":"https://api.github.com/users/blambo/gists{/gist_id}","starred_url":"https://api.github.com/users/blambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blambo/subscriptions","organizations_url":"https://api.github.com/users/blambo/orgs","repos_url":"https://api.github.com/users/blambo/repos","events_url":"https://api.github.com/users/blambo/events{/privacy}","received_events_url":"https://api.github.com/users/blambo/received_events","type":"User","site_admin":false},"body":"Minor, but probably want more descriptive TODO","created_at":"2016-08-18T14:15:47Z","updated_at":"2016-08-18T14:15:47Z","html_url":"https://github.com/latos/editor/pull/16#discussion_r75315413","pull_request_url":"https://api.github.com/repos/latos/editor/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/latos/editor/pulls/comments/75315413"},"html":{"href":"https://github.com/latos/editor/pull/16#discussion_r75315413"},"pull_request":{"href":"https://api.github.com/repos/latos/editor/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/latos/editor/pulls/16","id":81761033,"html_url":"https://github.com/latos/editor/pull/16","diff_url":"https://github.com/latos/editor/pull/16.diff","patch_url":"https://github.com/latos/editor/pull/16.patch","issue_url":"https://api.github.com/repos/latos/editor/issues/16","number":16,"state":"open","locked":false,"title":"Dan","user":{"login":"latos","id":729383,"avatar_url":"https://avatars.githubusercontent.com/u/729383?v=3","gravatar_id":"","url":"https://api.github.com/users/latos","html_url":"https://github.com/latos","followers_url":"https://api.github.com/users/latos/followers","following_url":"https://api.github.com/users/latos/following{/other_user}","gists_url":"https://api.github.com/users/latos/gists{/gist_id}","starred_url":"https://api.github.com/users/latos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latos/subscriptions","organizations_url":"https://api.github.com/users/latos/orgs","repos_url":"https://api.github.com/users/latos/repos","events_url":"https://api.github.com/users/latos/events{/privacy}","received_events_url":"https://api.github.com/users/latos/received_events","type":"User","site_admin":false},"body":"Please see the individual commits for the (several unrelated) changes ","created_at":"2016-08-18T06:02:16Z","updated_at":"2016-08-18T14:15:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a206ff2c8228a6014517fe8e7434e19b027151f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/latos/editor/pulls/16/commits","review_comments_url":"https://api.github.com/repos/latos/editor/pulls/16/comments","review_comment_url":"https://api.github.com/repos/latos/editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/latos/editor/issues/16/comments","statuses_url":"https://api.github.com/repos/latos/editor/statuses/83c372c03abd00de05e0906d14ce41bc00175900","head":{"label":"latos:dan","ref":"dan","sha":"83c372c03abd00de05e0906d14ce41bc00175900","user":{"login":"latos","id":729383,"avatar_url":"https://avatars.githubusercontent.com/u/729383?v=3","gravatar_id":"","url":"https://api.github.com/users/latos","html_url":"https://github.com/latos","followers_url":"https://api.github.com/users/latos/followers","following_url":"https://api.github.com/users/latos/following{/other_user}","gists_url":"https://api.github.com/users/latos/gists{/gist_id}","starred_url":"https://api.github.com/users/latos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latos/subscriptions","organizations_url":"https://api.github.com/users/latos/orgs","repos_url":"https://api.github.com/users/latos/repos","events_url":"https://api.github.com/users/latos/events{/privacy}","received_events_url":"https://api.github.com/users/latos/received_events","type":"User","site_admin":false},"repo":{"id":25922135,"name":"editor","full_name":"latos/editor","owner":{"login":"latos","id":729383,"avatar_url":"https://avatars.githubusercontent.com/u/729383?v=3","gravatar_id":"","url":"https://api.github.com/users/latos","html_url":"https://github.com/latos","followers_url":"https://api.github.com/users/latos/followers","following_url":"https://api.github.com/users/latos/following{/other_user}","gists_url":"https://api.github.com/users/latos/gists{/gist_id}","starred_url":"https://api.github.com/users/latos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latos/subscriptions","organizations_url":"https://api.github.com/users/latos/orgs","repos_url":"https://api.github.com/users/latos/repos","events_url":"https://api.github.com/users/latos/events{/privacy}","received_events_url":"https://api.github.com/users/latos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/latos/editor","description":"Lightweight, configurable web editor","fork":false,"url":"https://api.github.com/repos/latos/editor","forks_url":"https://api.github.com/repos/latos/editor/forks","keys_url":"https://api.github.com/repos/latos/editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/latos/editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/latos/editor/teams","hooks_url":"https://api.github.com/repos/latos/editor/hooks","issue_events_url":"https://api.github.com/repos/latos/editor/issues/events{/number}","events_url":"https://api.github.com/repos/latos/editor/events","assignees_url":"https://api.github.com/repos/latos/editor/assignees{/user}","branches_url":"https://api.github.com/repos/latos/editor/branches{/branch}","tags_url":"https://api.github.com/repos/latos/editor/tags","blobs_url":"https://api.github.com/repos/latos/editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/latos/editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/latos/editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/latos/editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/latos/editor/statuses/{sha}","languages_url":"https://api.github.com/repos/latos/editor/languages","stargazers_url":"https://api.github.com/repos/latos/editor/stargazers","contributors_url":"https://api.github.com/repos/latos/editor/contributors","subscribers_url":"https://api.github.com/repos/latos/editor/subscribers","subscription_url":"https://api.github.com/repos/latos/editor/subscription","commits_url":"https://api.github.com/repos/latos/editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/latos/editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/latos/editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/latos/editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/latos/editor/contents/{+path}","compare_url":"https://api.github.com/repos/latos/editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/latos/editor/merges","archive_url":"https://api.github.com/repos/latos/editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/latos/editor/downloads","issues_url":"https://api.github.com/repos/latos/editor/issues{/number}","pulls_url":"https://api.github.com/repos/latos/editor/pulls{/number}","milestones_url":"https://api.github.com/repos/latos/editor/milestones{/number}","notifications_url":"https://api.github.com/repos/latos/editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/latos/editor/labels{/name}","releases_url":"https://api.github.com/repos/latos/editor/releases{/id}","deployments_url":"https://api.github.com/repos/latos/editor/deployments","created_at":"2014-10-29T13:29:08Z","updated_at":"2016-03-17T00:16:49Z","pushed_at":"2016-08-18T06:02:16Z","git_url":"git://github.com/latos/editor.git","ssh_url":"git@github.com:latos/editor.git","clone_url":"https://github.com/latos/editor.git","svn_url":"https://github.com/latos/editor","homepage":null,"size":146,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"latos:ben","ref":"ben","sha":"b393425935af42dc63c34cad85137e48b7eb79bd","user":{"login":"latos","id":729383,"avatar_url":"https://avatars.githubusercontent.com/u/729383?v=3","gravatar_id":"","url":"https://api.github.com/users/latos","html_url":"https://github.com/latos","followers_url":"https://api.github.com/users/latos/followers","following_url":"https://api.github.com/users/latos/following{/other_user}","gists_url":"https://api.github.com/users/latos/gists{/gist_id}","starred_url":"https://api.github.com/users/latos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latos/subscriptions","organizations_url":"https://api.github.com/users/latos/orgs","repos_url":"https://api.github.com/users/latos/repos","events_url":"https://api.github.com/users/latos/events{/privacy}","received_events_url":"https://api.github.com/users/latos/received_events","type":"User","site_admin":false},"repo":{"id":25922135,"name":"editor","full_name":"latos/editor","owner":{"login":"latos","id":729383,"avatar_url":"https://avatars.githubusercontent.com/u/729383?v=3","gravatar_id":"","url":"https://api.github.com/users/latos","html_url":"https://github.com/latos","followers_url":"https://api.github.com/users/latos/followers","following_url":"https://api.github.com/users/latos/following{/other_user}","gists_url":"https://api.github.com/users/latos/gists{/gist_id}","starred_url":"https://api.github.com/users/latos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latos/subscriptions","organizations_url":"https://api.github.com/users/latos/orgs","repos_url":"https://api.github.com/users/latos/repos","events_url":"https://api.github.com/users/latos/events{/privacy}","received_events_url":"https://api.github.com/users/latos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/latos/editor","description":"Lightweight, configurable web editor","fork":false,"url":"https://api.github.com/repos/latos/editor","forks_url":"https://api.github.com/repos/latos/editor/forks","keys_url":"https://api.github.com/repos/latos/editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/latos/editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/latos/editor/teams","hooks_url":"https://api.github.com/repos/latos/editor/hooks","issue_events_url":"https://api.github.com/repos/latos/editor/issues/events{/number}","events_url":"https://api.github.com/repos/latos/editor/events","assignees_url":"https://api.github.com/repos/latos/editor/assignees{/user}","branches_url":"https://api.github.com/repos/latos/editor/branches{/branch}","tags_url":"https://api.github.com/repos/latos/editor/tags","blobs_url":"https://api.github.com/repos/latos/editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/latos/editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/latos/editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/latos/editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/latos/editor/statuses/{sha}","languages_url":"https://api.github.com/repos/latos/editor/languages","stargazers_url":"https://api.github.com/repos/latos/editor/stargazers","contributors_url":"https://api.github.com/repos/latos/editor/contributors","subscribers_url":"https://api.github.com/repos/latos/editor/subscribers","subscription_url":"https://api.github.com/repos/latos/editor/subscription","commits_url":"https://api.github.com/repos/latos/editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/latos/editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/latos/editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/latos/editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/latos/editor/contents/{+path}","compare_url":"https://api.github.com/repos/latos/editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/latos/editor/merges","archive_url":"https://api.github.com/repos/latos/editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/latos/editor/downloads","issues_url":"https://api.github.com/repos/latos/editor/issues{/number}","pulls_url":"https://api.github.com/repos/latos/editor/pulls{/number}","milestones_url":"https://api.github.com/repos/latos/editor/milestones{/number}","notifications_url":"https://api.github.com/repos/latos/editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/latos/editor/labels{/name}","releases_url":"https://api.github.com/repos/latos/editor/releases{/id}","deployments_url":"https://api.github.com/repos/latos/editor/deployments","created_at":"2014-10-29T13:29:08Z","updated_at":"2016-03-17T00:16:49Z","pushed_at":"2016-08-18T06:02:16Z","git_url":"git://github.com/latos/editor.git","ssh_url":"git@github.com:latos/editor.git","clone_url":"https://github.com/latos/editor.git","svn_url":"https://github.com/latos/editor","homepage":null,"size":146,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/latos/editor/pulls/16"},"html":{"href":"https://github.com/latos/editor/pull/16"},"issue":{"href":"https://api.github.com/repos/latos/editor/issues/16"},"comments":{"href":"https://api.github.com/repos/latos/editor/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/latos/editor/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/latos/editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/latos/editor/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/latos/editor/statuses/83c372c03abd00de05e0906d14ce41bc00175900"}}}}
{"actor":{"display_login":"blambo"}}