{"action":"closed","number":435,"pull_request":{"url":"https://api.github.com/repos/mtgred/netrunner/pulls/435","id":40771583,"html_url":"https://github.com/mtgred/netrunner/pull/435","diff_url":"https://github.com/mtgred/netrunner/pull/435.diff","patch_url":"https://github.com/mtgred/netrunner/pull/435.patch","issue_url":"https://api.github.com/repos/mtgred/netrunner/issues/435","number":435,"state":"closed","locked":false,"title":"use event delegation","user":{"login":"DominicKexel","id":3126597,"avatar_url":"https://avatars.githubusercontent.com/u/3126597?v=3","gravatar_id":"","url":"https://api.github.com/users/DominicKexel","html_url":"https://github.com/DominicKexel","followers_url":"https://api.github.com/users/DominicKexel/followers","following_url":"https://api.github.com/users/DominicKexel/following{/other_user}","gists_url":"https://api.github.com/users/DominicKexel/gists{/gist_id}","starred_url":"https://api.github.com/users/DominicKexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominicKexel/subscriptions","organizations_url":"https://api.github.com/users/DominicKexel/orgs","repos_url":"https://api.github.com/users/DominicKexel/repos","events_url":"https://api.github.com/users/DominicKexel/events{/privacy}","received_events_url":"https://api.github.com/users/DominicKexel/received_events","type":"User","site_admin":false},"body":"instead of creating an event handler for each card name in the log window,\r\ncreate a single event handler that looks for a card code in the element.\r\n\r\nDo this also for the prompt when accessing cards.\r\n\r\nThis reduces the memory needed.\r\n\r\nRelates to case mtgred/netrunner#431","created_at":"2015-07-24T12:51:25Z","updated_at":"2015-07-27T17:56:43Z","closed_at":"2015-07-27T17:56:43Z","merged_at":"2015-07-27T17:56:43Z","merge_commit_sha":"81d5cf5d74d306c2d4f8010f4debae554bcf455c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mtgred/netrunner/pulls/435/commits","review_comments_url":"https://api.github.com/repos/mtgred/netrunner/pulls/435/comments","review_comment_url":"https://api.github.com/repos/mtgred/netrunner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mtgred/netrunner/issues/435/comments","statuses_url":"https://api.github.com/repos/mtgred/netrunner/statuses/204deb328e1ae2cd90a3fa55992bdbd557787d77","head":{"label":"DominicKexel:cards_delegation","ref":"cards_delegation","sha":"204deb328e1ae2cd90a3fa55992bdbd557787d77","user":{"login":"DominicKexel","id":3126597,"avatar_url":"https://avatars.githubusercontent.com/u/3126597?v=3","gravatar_id":"","url":"https://api.github.com/users/DominicKexel","html_url":"https://github.com/DominicKexel","followers_url":"https://api.github.com/users/DominicKexel/followers","following_url":"https://api.github.com/users/DominicKexel/following{/other_user}","gists_url":"https://api.github.com/users/DominicKexel/gists{/gist_id}","starred_url":"https://api.github.com/users/DominicKexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominicKexel/subscriptions","organizations_url":"https://api.github.com/users/DominicKexel/orgs","repos_url":"https://api.github.com/users/DominicKexel/repos","events_url":"https://api.github.com/users/DominicKexel/events{/privacy}","received_events_url":"https://api.github.com/users/DominicKexel/received_events","type":"User","site_admin":false},"repo":{"id":37135521,"name":"netrunner","full_name":"DominicKexel/netrunner","owner":{"login":"DominicKexel","id":3126597,"avatar_url":"https://avatars.githubusercontent.com/u/3126597?v=3","gravatar_id":"","url":"https://api.github.com/users/DominicKexel","html_url":"https://github.com/DominicKexel","followers_url":"https://api.github.com/users/DominicKexel/followers","following_url":"https://api.github.com/users/DominicKexel/following{/other_user}","gists_url":"https://api.github.com/users/DominicKexel/gists{/gist_id}","starred_url":"https://api.github.com/users/DominicKexel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominicKexel/subscriptions","organizations_url":"https://api.github.com/users/DominicKexel/orgs","repos_url":"https://api.github.com/users/DominicKexel/repos","events_url":"https://api.github.com/users/DominicKexel/events{/privacy}","received_events_url":"https://api.github.com/users/DominicKexel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DominicKexel/netrunner","description":"","fork":true,"url":"https://api.github.com/repos/DominicKexel/netrunner","forks_url":"https://api.github.com/repos/DominicKexel/netrunner/forks","keys_url":"https://api.github.com/repos/DominicKexel/netrunner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DominicKexel/netrunner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DominicKexel/netrunner/teams","hooks_url":"https://api.github.com/repos/DominicKexel/netrunner/hooks","issue_events_url":"https://api.github.com/repos/DominicKexel/netrunner/issues/events{/number}","events_url":"https://api.github.com/repos/DominicKexel/netrunner/events","assignees_url":"https://api.github.com/repos/DominicKexel/netrunner/assignees{/user}","branches_url":"https://api.github.com/repos/DominicKexel/netrunner/branches{/branch}","tags_url":"https://api.github.com/repos/DominicKexel/netrunner/tags","blobs_url":"https://api.github.com/repos/DominicKexel/netrunner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DominicKexel/netrunner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DominicKexel/netrunner/git/refs{/sha}","trees_url":"https://api.github.com/repos/DominicKexel/netrunner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DominicKexel/netrunner/statuses/{sha}","languages_url":"https://api.github.com/repos/DominicKexel/netrunner/languages","stargazers_url":"https://api.github.com/repos/DominicKexel/netrunner/stargazers","contributors_url":"https://api.github.com/repos/DominicKexel/netrunner/contributors","subscribers_url":"https://api.github.com/repos/DominicKexel/netrunner/subscribers","subscription_url":"https://api.github.com/repos/DominicKexel/netrunner/subscription","commits_url":"https://api.github.com/repos/DominicKexel/netrunner/commits{/sha}","git_commits_url":"https://api.github.com/repos/DominicKexel/netrunner/git/commits{/sha}","comments_url":"https://api.github.com/repos/DominicKexel/netrunner/comments{/number}","issue_comment_url":"https://api.github.com/repos/DominicKexel/netrunner/issues/comments{/number}","contents_url":"https://api.github.com/repos/DominicKexel/netrunner/contents/{+path}","compare_url":"https://api.github.com/repos/DominicKexel/netrunner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DominicKexel/netrunner/merges","archive_url":"https://api.github.com/repos/DominicKexel/netrunner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DominicKexel/netrunner/downloads","issues_url":"https://api.github.com/repos/DominicKexel/netrunner/issues{/number}","pulls_url":"https://api.github.com/repos/DominicKexel/netrunner/pulls{/number}","milestones_url":"https://api.github.com/repos/DominicKexel/netrunner/milestones{/number}","notifications_url":"https://api.github.com/repos/DominicKexel/netrunner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DominicKexel/netrunner/labels{/name}","releases_url":"https://api.github.com/repos/DominicKexel/netrunner/releases{/id}","created_at":"2015-06-09T14:01:17Z","updated_at":"2015-06-09T14:01:18Z","pushed_at":"2015-07-24T20:10:08Z","git_url":"git://github.com/DominicKexel/netrunner.git","ssh_url":"git@github.com:DominicKexel/netrunner.git","clone_url":"https://github.com/DominicKexel/netrunner.git","svn_url":"https://github.com/DominicKexel/netrunner","homepage":"http://www.jinteki.net","size":6327,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":"mtgred:master","ref":"master","sha":"fb24580b363e88b23ba960b08b6a5563f167a195","user":{"login":"mtgred","id":284114,"avatar_url":"https://avatars.githubusercontent.com/u/284114?v=3","gravatar_id":"","url":"https://api.github.com/users/mtgred","html_url":"https://github.com/mtgred","followers_url":"https://api.github.com/users/mtgred/followers","following_url":"https://api.github.com/users/mtgred/following{/other_user}","gists_url":"https://api.github.com/users/mtgred/gists{/gist_id}","starred_url":"https://api.github.com/users/mtgred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtgred/subscriptions","organizations_url":"https://api.github.com/users/mtgred/orgs","repos_url":"https://api.github.com/users/mtgred/repos","events_url":"https://api.github.com/users/mtgred/events{/privacy}","received_events_url":"https://api.github.com/users/mtgred/received_events","type":"User","site_admin":false},"repo":{"id":19079918,"name":"netrunner","full_name":"mtgred/netrunner","owner":{"login":"mtgred","id":284114,"avatar_url":"https://avatars.githubusercontent.com/u/284114?v=3","gravatar_id":"","url":"https://api.github.com/users/mtgred","html_url":"https://github.com/mtgred","followers_url":"https://api.github.com/users/mtgred/followers","following_url":"https://api.github.com/users/mtgred/following{/other_user}","gists_url":"https://api.github.com/users/mtgred/gists{/gist_id}","starred_url":"https://api.github.com/users/mtgred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtgred/subscriptions","organizations_url":"https://api.github.com/users/mtgred/orgs","repos_url":"https://api.github.com/users/mtgred/repos","events_url":"https://api.github.com/users/mtgred/events{/privacy}","received_events_url":"https://api.github.com/users/mtgred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtgred/netrunner","description":"","fork":false,"url":"https://api.github.com/repos/mtgred/netrunner","forks_url":"https://api.github.com/repos/mtgred/netrunner/forks","keys_url":"https://api.github.com/repos/mtgred/netrunner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtgred/netrunner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtgred/netrunner/teams","hooks_url":"https://api.github.com/repos/mtgred/netrunner/hooks","issue_events_url":"https://api.github.com/repos/mtgred/netrunner/issues/events{/number}","events_url":"https://api.github.com/repos/mtgred/netrunner/events","assignees_url":"https://api.github.com/repos/mtgred/netrunner/assignees{/user}","branches_url":"https://api.github.com/repos/mtgred/netrunner/branches{/branch}","tags_url":"https://api.github.com/repos/mtgred/netrunner/tags","blobs_url":"https://api.github.com/repos/mtgred/netrunner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtgred/netrunner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtgred/netrunner/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtgred/netrunner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtgred/netrunner/statuses/{sha}","languages_url":"https://api.github.com/repos/mtgred/netrunner/languages","stargazers_url":"https://api.github.com/repos/mtgred/netrunner/stargazers","contributors_url":"https://api.github.com/repos/mtgred/netrunner/contributors","subscribers_url":"https://api.github.com/repos/mtgred/netrunner/subscribers","subscription_url":"https://api.github.com/repos/mtgred/netrunner/subscription","commits_url":"https://api.github.com/repos/mtgred/netrunner/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtgred/netrunner/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtgred/netrunner/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtgred/netrunner/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtgred/netrunner/contents/{+path}","compare_url":"https://api.github.com/repos/mtgred/netrunner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtgred/netrunner/merges","archive_url":"https://api.github.com/repos/mtgred/netrunner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtgred/netrunner/downloads","issues_url":"https://api.github.com/repos/mtgred/netrunner/issues{/number}","pulls_url":"https://api.github.com/repos/mtgred/netrunner/pulls{/number}","milestones_url":"https://api.github.com/repos/mtgred/netrunner/milestones{/number}","notifications_url":"https://api.github.com/repos/mtgred/netrunner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtgred/netrunner/labels{/name}","releases_url":"https://api.github.com/repos/mtgred/netrunner/releases{/id}","created_at":"2014-04-23T17:57:52Z","updated_at":"2015-07-27T06:26:26Z","pushed_at":"2015-07-27T17:56:42Z","git_url":"git://github.com/mtgred/netrunner.git","ssh_url":"git@github.com:mtgred/netrunner.git","clone_url":"https://github.com/mtgred/netrunner.git","svn_url":"https://github.com/mtgred/netrunner","homepage":"http://www.jinteki.net","size":9096,"stargazers_count":167,"watchers_count":167,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":114,"forks":63,"open_issues":114,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mtgred/netrunner/pulls/435"},"html":{"href":"https://github.com/mtgred/netrunner/pull/435"},"issue":{"href":"https://api.github.com/repos/mtgred/netrunner/issues/435"},"comments":{"href":"https://api.github.com/repos/mtgred/netrunner/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/mtgred/netrunner/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/mtgred/netrunner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mtgred/netrunner/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/mtgred/netrunner/statuses/204deb328e1ae2cd90a3fa55992bdbd557787d77"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mtgred","id":284114,"avatar_url":"https://avatars.githubusercontent.com/u/284114?v=3","gravatar_id":"","url":"https://api.github.com/users/mtgred","html_url":"https://github.com/mtgred","followers_url":"https://api.github.com/users/mtgred/followers","following_url":"https://api.github.com/users/mtgred/following{/other_user}","gists_url":"https://api.github.com/users/mtgred/gists{/gist_id}","starred_url":"https://api.github.com/users/mtgred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtgred/subscriptions","organizations_url":"https://api.github.com/users/mtgred/orgs","repos_url":"https://api.github.com/users/mtgred/repos","events_url":"https://api.github.com/users/mtgred/events{/privacy}","received_events_url":"https://api.github.com/users/mtgred/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":5,"changed_files":1}}