GitHub PullRequestReviewCommentEvent at 2014-05-04 08:40:07
Repository: IO2014
Actor: maciekbb
Payload: {"comment":{"url":"https://api.github.com/repos/TheTaz/IO2014/pulls/comments/12260442","id":12260442,"diff_hunk":"@@ -1,18 +1,71 @@\n ###*\n-# js_injector class.\n-# @class js_injector\n+# Js code injector class.\n+# @class JsInjector\n ###\n \n class JsInjector\n   constructor: (@connectionManager) ->\n \n-  inject: (id, task) ->\n+  ###*\n+  # Inject code, takes as parameter task id and task processing function\n+  # @method injectCode\n+  # @param {Integer} taskId specified task identificator\n+  # @param {Function} taskProcessFun specified task processing function\n+  ###\n+\n+  injectCode: (taskId, taskProcessFun) ->\n+\n+    console.log \"Loading code for task: \", taskId\n+\n+    data =\n+      type: \"task\"\n+      taskId: taskId\n+      task: taskProcessFun\n+\n+    for client in @connectionManager.getActiveConnections()\n+      @connectionManager.send(client, data)","path":"src/js_injector.coffee","position":29,"original_position":29,"commit_id":"c11cf3b38b715b1945f55f60aaf24229023cdb2e","original_commit_id":"c11cf3b38b715b1945f55f60aaf24229023cdb2e","user":{"login":"maciekbb","id":1040733,"avatar_url":"https://avatars.githubusercontent.com/u/1040733?","gravatar_id":"5d04d5100326d11e59e5c105e628a0b2","url":"https://api.github.com/users/maciekbb","html_url":"https://github.com/maciekbb","followers_url":"https://api.github.com/users/maciekbb/followers","following_url":"https://api.github.com/users/maciekbb/following{/other_user}","gists_url":"https://api.github.com/users/maciekbb/gists{/gist_id}","starred_url":"https://api.github.com/users/maciekbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciekbb/subscriptions","organizations_url":"https://api.github.com/users/maciekbb/orgs","repos_url":"https://api.github.com/users/maciekbb/repos","events_url":"https://api.github.com/users/maciekbb/events{/privacy}","received_events_url":"https://api.github.com/users/maciekbb/received_events","type":"User","site_admin":false},"body":"Oprócz data musisz jeszcze przesłać opcode 1 (według https://github.com/TheTaz/IO2014/wiki/Architektura-systemu)","created_at":"2014-05-04T08:40:07Z","updated_at":"2014-05-04T08:40:07Z","html_url":"https://github.com/TheTaz/IO2014/pull/67#discussion_r12260442","pull_request_url":"https://api.github.com/repos/TheTaz/IO2014/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/TheTaz/IO2014/pulls/comments/12260442"},"html":{"href":"https://github.com/TheTaz/IO2014/pull/67#discussion_r12260442"},"pull_request":{"href":"https://api.github.com/repos/TheTaz/IO2014/pulls/67"}}}}