{"action":"created","comment":{"url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/comments/71909812","id":71909812,"diff_hunk":"@@ -45,6 +46,16 @@ export class InventoryWindow extends React.Component<InventoryWindowProps, Inven\n       client.EquipItem(group.getFirstItemID());\n     }\n   }\n+  \n+  simDblClick(callOnDblClick: (...args : any[]) => void, ...args : any[]) {\n+\t  let now:number = Date.now();\n+\t  if (now - this.lastClicked < 400) {\n+      callOnDblClick.apply(this, args);","path":"inventory/src/ts/components/inventory-window.tsx","position":25,"original_position":25,"commit_id":"c4222a0c774162523ef9ff8e7fc3810ee9b74743","original_commit_id":"c4222a0c774162523ef9ff8e7fc3810ee9b74743","user":{"login":"codecorsair","id":9878445,"avatar_url":"https://avatars.githubusercontent.com/u/9878445?v=3","gravatar_id":"","url":"https://api.github.com/users/codecorsair","html_url":"https://github.com/codecorsair","followers_url":"https://api.github.com/users/codecorsair/followers","following_url":"https://api.github.com/users/codecorsair/following{/other_user}","gists_url":"https://api.github.com/users/codecorsair/gists{/gist_id}","starred_url":"https://api.github.com/users/codecorsair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecorsair/subscriptions","organizations_url":"https://api.github.com/users/codecorsair/orgs","repos_url":"https://api.github.com/users/codecorsair/repos","events_url":"https://api.github.com/users/codecorsair/events{/privacy}","received_events_url":"https://api.github.com/users/codecorsair/received_events","type":"User","site_admin":false},"body":"Just preference again... I prefer using the spread operator to just call the function normally rather than using apply.  This does however only work with TypeScript right now if you have the callback set to any.\r\n\r\n```\r\nsimDblClick(onDblClick: any, ...dblClickArgs: any[]) {\r\n  // check for clicks...\r\n  if ( double clicked)  {\r\n    onDblClick(...dblClickArgs);\r\n  }\r\n}\r\n```","created_at":"2016-07-22T16:51:33Z","updated_at":"2016-07-22T16:51:33Z","html_url":"https://github.com/CUModSquad/cu-ui/pull/45#discussion_r71909812","pull_request_url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/comments/71909812"},"html":{"href":"https://github.com/CUModSquad/cu-ui/pull/45#discussion_r71909812"},"pull_request":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45","id":78505325,"html_url":"https://github.com/CUModSquad/cu-ui/pull/45","diff_url":"https://github.com/CUModSquad/cu-ui/pull/45.diff","patch_url":"https://github.com/CUModSquad/cu-ui/pull/45.patch","issue_url":"https://api.github.com/repos/CUModSquad/cu-ui/issues/45","number":45,"state":"open","locked":false,"title":"Fix inventory double click issue","user":{"login":"Shane7","id":6445629,"avatar_url":"https://avatars.githubusercontent.com/u/6445629?v=3","gravatar_id":"","url":"https://api.github.com/users/Shane7","html_url":"https://github.com/Shane7","followers_url":"https://api.github.com/users/Shane7/followers","following_url":"https://api.github.com/users/Shane7/following{/other_user}","gists_url":"https://api.github.com/users/Shane7/gists{/gist_id}","starred_url":"https://api.github.com/users/Shane7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shane7/subscriptions","organizations_url":"https://api.github.com/users/Shane7/orgs","repos_url":"https://api.github.com/users/Shane7/repos","events_url":"https://api.github.com/users/Shane7/events{/privacy}","received_events_url":"https://api.github.com/users/Shane7/received_events","type":"User","site_admin":false},"body":"other changes were to work around build issues","created_at":"2016-07-22T16:35:56Z","updated_at":"2016-07-22T16:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3618ce2befaac5a6389ca4b9a207695ed2225339","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45/commits","review_comments_url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45/comments","review_comment_url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CUModSquad/cu-ui/issues/45/comments","statuses_url":"https://api.github.com/repos/CUModSquad/cu-ui/statuses/c4222a0c774162523ef9ff8e7fc3810ee9b74743","head":{"label":"Shane7:master","ref":"master","sha":"c4222a0c774162523ef9ff8e7fc3810ee9b74743","user":{"login":"Shane7","id":6445629,"avatar_url":"https://avatars.githubusercontent.com/u/6445629?v=3","gravatar_id":"","url":"https://api.github.com/users/Shane7","html_url":"https://github.com/Shane7","followers_url":"https://api.github.com/users/Shane7/followers","following_url":"https://api.github.com/users/Shane7/following{/other_user}","gists_url":"https://api.github.com/users/Shane7/gists{/gist_id}","starred_url":"https://api.github.com/users/Shane7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shane7/subscriptions","organizations_url":"https://api.github.com/users/Shane7/orgs","repos_url":"https://api.github.com/users/Shane7/repos","events_url":"https://api.github.com/users/Shane7/events{/privacy}","received_events_url":"https://api.github.com/users/Shane7/received_events","type":"User","site_admin":false},"repo":{"id":46645083,"name":"cu-ui","full_name":"Shane7/cu-ui","owner":{"login":"Shane7","id":6445629,"avatar_url":"https://avatars.githubusercontent.com/u/6445629?v=3","gravatar_id":"","url":"https://api.github.com/users/Shane7","html_url":"https://github.com/Shane7","followers_url":"https://api.github.com/users/Shane7/followers","following_url":"https://api.github.com/users/Shane7/following{/other_user}","gists_url":"https://api.github.com/users/Shane7/gists{/gist_id}","starred_url":"https://api.github.com/users/Shane7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shane7/subscriptions","organizations_url":"https://api.github.com/users/Shane7/orgs","repos_url":"https://api.github.com/users/Shane7/repos","events_url":"https://api.github.com/users/Shane7/events{/privacy}","received_events_url":"https://api.github.com/users/Shane7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shane7/cu-ui","description":"Camelot Unchained UI 2 - ModSquad","fork":true,"url":"https://api.github.com/repos/Shane7/cu-ui","forks_url":"https://api.github.com/repos/Shane7/cu-ui/forks","keys_url":"https://api.github.com/repos/Shane7/cu-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shane7/cu-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shane7/cu-ui/teams","hooks_url":"https://api.github.com/repos/Shane7/cu-ui/hooks","issue_events_url":"https://api.github.com/repos/Shane7/cu-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Shane7/cu-ui/events","assignees_url":"https://api.github.com/repos/Shane7/cu-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Shane7/cu-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Shane7/cu-ui/tags","blobs_url":"https://api.github.com/repos/Shane7/cu-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shane7/cu-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shane7/cu-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shane7/cu-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shane7/cu-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Shane7/cu-ui/languages","stargazers_url":"https://api.github.com/repos/Shane7/cu-ui/stargazers","contributors_url":"https://api.github.com/repos/Shane7/cu-ui/contributors","subscribers_url":"https://api.github.com/repos/Shane7/cu-ui/subscribers","subscription_url":"https://api.github.com/repos/Shane7/cu-ui/subscription","commits_url":"https://api.github.com/repos/Shane7/cu-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shane7/cu-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shane7/cu-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shane7/cu-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shane7/cu-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Shane7/cu-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shane7/cu-ui/merges","archive_url":"https://api.github.com/repos/Shane7/cu-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shane7/cu-ui/downloads","issues_url":"https://api.github.com/repos/Shane7/cu-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Shane7/cu-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Shane7/cu-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Shane7/cu-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shane7/cu-ui/labels{/name}","releases_url":"https://api.github.com/repos/Shane7/cu-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Shane7/cu-ui/deployments","created_at":"2015-11-22T03:38:20Z","updated_at":"2016-07-16T05:20:03Z","pushed_at":"2016-07-22T16:33:27Z","git_url":"git://github.com/Shane7/cu-ui.git","ssh_url":"git@github.com:Shane7/cu-ui.git","clone_url":"https://github.com/Shane7/cu-ui.git","svn_url":"https://github.com/Shane7/cu-ui","homepage":"","size":492,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"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":"CUModSquad:master","ref":"master","sha":"a9974149936652b4e96ca8b524cd72a20891a630","user":{"login":"CUModSquad","id":13527172,"avatar_url":"https://avatars.githubusercontent.com/u/13527172?v=3","gravatar_id":"","url":"https://api.github.com/users/CUModSquad","html_url":"https://github.com/CUModSquad","followers_url":"https://api.github.com/users/CUModSquad/followers","following_url":"https://api.github.com/users/CUModSquad/following{/other_user}","gists_url":"https://api.github.com/users/CUModSquad/gists{/gist_id}","starred_url":"https://api.github.com/users/CUModSquad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUModSquad/subscriptions","organizations_url":"https://api.github.com/users/CUModSquad/orgs","repos_url":"https://api.github.com/users/CUModSquad/repos","events_url":"https://api.github.com/users/CUModSquad/events{/privacy}","received_events_url":"https://api.github.com/users/CUModSquad/received_events","type":"Organization","site_admin":false},"repo":{"id":43985362,"name":"cu-ui","full_name":"CUModSquad/cu-ui","owner":{"login":"CUModSquad","id":13527172,"avatar_url":"https://avatars.githubusercontent.com/u/13527172?v=3","gravatar_id":"","url":"https://api.github.com/users/CUModSquad","html_url":"https://github.com/CUModSquad","followers_url":"https://api.github.com/users/CUModSquad/followers","following_url":"https://api.github.com/users/CUModSquad/following{/other_user}","gists_url":"https://api.github.com/users/CUModSquad/gists{/gist_id}","starred_url":"https://api.github.com/users/CUModSquad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUModSquad/subscriptions","organizations_url":"https://api.github.com/users/CUModSquad/orgs","repos_url":"https://api.github.com/users/CUModSquad/repos","events_url":"https://api.github.com/users/CUModSquad/events{/privacy}","received_events_url":"https://api.github.com/users/CUModSquad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CUModSquad/cu-ui","description":"Camelot Unchained UI 2","fork":true,"url":"https://api.github.com/repos/CUModSquad/cu-ui","forks_url":"https://api.github.com/repos/CUModSquad/cu-ui/forks","keys_url":"https://api.github.com/repos/CUModSquad/cu-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CUModSquad/cu-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CUModSquad/cu-ui/teams","hooks_url":"https://api.github.com/repos/CUModSquad/cu-ui/hooks","issue_events_url":"https://api.github.com/repos/CUModSquad/cu-ui/issues/events{/number}","events_url":"https://api.github.com/repos/CUModSquad/cu-ui/events","assignees_url":"https://api.github.com/repos/CUModSquad/cu-ui/assignees{/user}","branches_url":"https://api.github.com/repos/CUModSquad/cu-ui/branches{/branch}","tags_url":"https://api.github.com/repos/CUModSquad/cu-ui/tags","blobs_url":"https://api.github.com/repos/CUModSquad/cu-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CUModSquad/cu-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CUModSquad/cu-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/CUModSquad/cu-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CUModSquad/cu-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/CUModSquad/cu-ui/languages","stargazers_url":"https://api.github.com/repos/CUModSquad/cu-ui/stargazers","contributors_url":"https://api.github.com/repos/CUModSquad/cu-ui/contributors","subscribers_url":"https://api.github.com/repos/CUModSquad/cu-ui/subscribers","subscription_url":"https://api.github.com/repos/CUModSquad/cu-ui/subscription","commits_url":"https://api.github.com/repos/CUModSquad/cu-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/CUModSquad/cu-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/CUModSquad/cu-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/CUModSquad/cu-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/CUModSquad/cu-ui/contents/{+path}","compare_url":"https://api.github.com/repos/CUModSquad/cu-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CUModSquad/cu-ui/merges","archive_url":"https://api.github.com/repos/CUModSquad/cu-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CUModSquad/cu-ui/downloads","issues_url":"https://api.github.com/repos/CUModSquad/cu-ui/issues{/number}","pulls_url":"https://api.github.com/repos/CUModSquad/cu-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/CUModSquad/cu-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/CUModSquad/cu-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CUModSquad/cu-ui/labels{/name}","releases_url":"https://api.github.com/repos/CUModSquad/cu-ui/releases{/id}","deployments_url":"https://api.github.com/repos/CUModSquad/cu-ui/deployments","created_at":"2015-10-09T23:53:07Z","updated_at":"2016-02-25T22:05:39Z","pushed_at":"2016-07-22T16:35:56Z","git_url":"git://github.com/CUModSquad/cu-ui.git","ssh_url":"git@github.com:CUModSquad/cu-ui.git","clone_url":"https://github.com/CUModSquad/cu-ui.git","svn_url":"https://github.com/CUModSquad/cu-ui","homepage":"","size":1128,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45"},"html":{"href":"https://github.com/CUModSquad/cu-ui/pull/45"},"issue":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/issues/45"},"comments":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/CUModSquad/cu-ui/statuses/c4222a0c774162523ef9ff8e7fc3810ee9b74743"}}}}
{"actor":{"display_login":"codecorsair"}}