GitHub PullRequestReviewCommentEvent at 2014-02-03 10:46:34
Repository: DOM
Actor: gurugray
Payload: {"comment":{"url":"https://api.github.com/repos/front-tnu/DOM/pulls/comments/9378780","id":9378780,"diff_hunk":"@@ -1,22 +1,88 @@\n /**\n- * Обработчик клика по ссылке с классом 'popup-link'\n- * @param {Event} e событие клика\n- * @private\n- */\n-function _onMouseClick(e) {}\n+* Обработчик клика по ссылке с классом 'popup-link'\n+* @param {Event} e событие клика\n+* @private\n+*/\n+\n+\n+    var link_1 = document.getElementsByClassName('popup-link')[0];\n+    var link_2 = document.getElementsByClassName('popup-link')[1];\n+    link_1.addEventListener(\"click\",function (){_onMouseClick(this);},false);\n+    link_2.addEventListener(\"click\",function () {_onMouseClick(this);},false);","path":"homework.js","position":16,"original_position":16,"commit_id":"6a984cd66220c33a99428c8cfa10c8cd75b9a4a8","original_commit_id":"6a984cd66220c33a99428c8cfa10c8cd75b9a4a8","user":{"login":"gurugray","id":52771,"avatar_url":"https://gravatar.com/avatar/2ffacc76f61622698389096864acf01b?d=https%3A%2F%2Fidenticons.github.com%2Fd0196457fb5a8aa53a2e6a25582e5384.png&r=x","gravatar_id":"2ffacc76f61622698389096864acf01b","url":"https://api.github.com/users/gurugray","html_url":"https://github.com/gurugray","followers_url":"https://api.github.com/users/gurugray/followers","following_url":"https://api.github.com/users/gurugray/following{/other_user}","gists_url":"https://api.github.com/users/gurugray/gists{/gist_id}","starred_url":"https://api.github.com/users/gurugray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurugray/subscriptions","organizations_url":"https://api.github.com/users/gurugray/orgs","repos_url":"https://api.github.com/users/gurugray/repos","events_url":"https://api.github.com/users/gurugray/events{/privacy}","received_events_url":"https://api.github.com/users/gurugray/received_events","type":"User","site_admin":false},"body":"так плохо, а что если добавятся ещё ссылки?\r\nа что если этих ссылок будет очень много?","created_at":"2014-02-03T10:46:34Z","updated_at":"2014-02-03T10:46:34Z","html_url":"https://github.com/front-tnu/DOM/pull/16#discussion_r9378780","pull_request_url":"https://api.github.com/repos/front-tnu/DOM/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/front-tnu/DOM/pulls/comments/9378780"},"html":{"href":"https://github.com/front-tnu/DOM/pull/16#discussion_r9378780"},"pull_request":{"href":"https://api.github.com/repos/front-tnu/DOM/pulls/16"}}}}