{"action":"created","comment":{"url":"https://api.github.com/repos/firstandthird/domodule/pulls/comments/62699610","id":62699610,"diff_hunk":"@@ -46,4 +109,47 @@ class Domodule {\n   find(selector) {\n     return this.el.querySelectorAll(selector);\n   }\n+\n+  findOne(selector) {\n+    const found = this.find(selector);\n+\n+    if (found.length) {\n+      return found[0];\n+    }\n+\n+    return null;\n+  }\n+\n+  findByName(name) {","path":"lib/domodule.js","position":128,"original_position":128,"commit_id":"9b679f9c11451a078e925fb3926a3d8f47e507a8","original_commit_id":"9b679f9c11451a078e925fb3926a3d8f47e507a8","user":{"login":"jgallen23","id":27936,"avatar_url":"https://avatars.githubusercontent.com/u/27936?v=3","gravatar_id":"","url":"https://api.github.com/users/jgallen23","html_url":"https://github.com/jgallen23","followers_url":"https://api.github.com/users/jgallen23/followers","following_url":"https://api.github.com/users/jgallen23/following{/other_user}","gists_url":"https://api.github.com/users/jgallen23/gists{/gist_id}","starred_url":"https://api.github.com/users/jgallen23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgallen23/subscriptions","organizations_url":"https://api.github.com/users/jgallen23/orgs","repos_url":"https://api.github.com/users/jgallen23/repos","events_url":"https://api.github.com/users/jgallen23/events{/privacy}","received_events_url":"https://api.github.com/users/jgallen23/received_events","type":"User","site_admin":false},"body":"what is the use case here?","created_at":"2016-05-10T15:58:18Z","updated_at":"2016-05-10T15:58:18Z","html_url":"https://github.com/firstandthird/domodule/pull/2#discussion_r62699610","pull_request_url":"https://api.github.com/repos/firstandthird/domodule/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/comments/62699610"},"html":{"href":"https://github.com/firstandthird/domodule/pull/2#discussion_r62699610"},"pull_request":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/firstandthird/domodule/pulls/2","id":67454877,"html_url":"https://github.com/firstandthird/domodule/pull/2","diff_url":"https://github.com/firstandthird/domodule/pull/2.diff","patch_url":"https://github.com/firstandthird/domodule/pull/2.patch","issue_url":"https://api.github.com/repos/firstandthird/domodule/issues/2","number":2,"state":"open","locked":false,"title":"New helper methods","user":{"login":"dawnerd","id":24781,"avatar_url":"https://avatars.githubusercontent.com/u/24781?v=3","gravatar_id":"","url":"https://api.github.com/users/dawnerd","html_url":"https://github.com/dawnerd","followers_url":"https://api.github.com/users/dawnerd/followers","following_url":"https://api.github.com/users/dawnerd/following{/other_user}","gists_url":"https://api.github.com/users/dawnerd/gists{/gist_id}","starred_url":"https://api.github.com/users/dawnerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawnerd/subscriptions","organizations_url":"https://api.github.com/users/dawnerd/orgs","repos_url":"https://api.github.com/users/dawnerd/repos","events_url":"https://api.github.com/users/dawnerd/events{/privacy}","received_events_url":"https://api.github.com/users/dawnerd/received_events","type":"User","site_admin":false},"body":"Adds:\r\n\r\n- separate methods for binding actions and elements\r\n- findOne\r\n- findByName\r\n- getOption\r\n- tests\r\n- data-module-global-*/data-action-global-*\r\n- refs to instance stored on Domodule\r\n- getInstance\r\n","created_at":"2016-04-22T03:35:10Z","updated_at":"2016-05-10T15:58:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bc0a1936e62a460abd85d9239871fe0e5900bba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/firstandthird/domodule/pulls/2/commits","review_comments_url":"https://api.github.com/repos/firstandthird/domodule/pulls/2/comments","review_comment_url":"https://api.github.com/repos/firstandthird/domodule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/firstandthird/domodule/issues/2/comments","statuses_url":"https://api.github.com/repos/firstandthird/domodule/statuses/9b679f9c11451a078e925fb3926a3d8f47e507a8","head":{"label":"firstandthird:utils","ref":"utils","sha":"9b679f9c11451a078e925fb3926a3d8f47e507a8","user":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"repo":{"id":54734488,"name":"domodule","full_name":"firstandthird/domodule","owner":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firstandthird/domodule","description":"Declarative dom module","fork":false,"url":"https://api.github.com/repos/firstandthird/domodule","forks_url":"https://api.github.com/repos/firstandthird/domodule/forks","keys_url":"https://api.github.com/repos/firstandthird/domodule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firstandthird/domodule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firstandthird/domodule/teams","hooks_url":"https://api.github.com/repos/firstandthird/domodule/hooks","issue_events_url":"https://api.github.com/repos/firstandthird/domodule/issues/events{/number}","events_url":"https://api.github.com/repos/firstandthird/domodule/events","assignees_url":"https://api.github.com/repos/firstandthird/domodule/assignees{/user}","branches_url":"https://api.github.com/repos/firstandthird/domodule/branches{/branch}","tags_url":"https://api.github.com/repos/firstandthird/domodule/tags","blobs_url":"https://api.github.com/repos/firstandthird/domodule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firstandthird/domodule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firstandthird/domodule/git/refs{/sha}","trees_url":"https://api.github.com/repos/firstandthird/domodule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firstandthird/domodule/statuses/{sha}","languages_url":"https://api.github.com/repos/firstandthird/domodule/languages","stargazers_url":"https://api.github.com/repos/firstandthird/domodule/stargazers","contributors_url":"https://api.github.com/repos/firstandthird/domodule/contributors","subscribers_url":"https://api.github.com/repos/firstandthird/domodule/subscribers","subscription_url":"https://api.github.com/repos/firstandthird/domodule/subscription","commits_url":"https://api.github.com/repos/firstandthird/domodule/commits{/sha}","git_commits_url":"https://api.github.com/repos/firstandthird/domodule/git/commits{/sha}","comments_url":"https://api.github.com/repos/firstandthird/domodule/comments{/number}","issue_comment_url":"https://api.github.com/repos/firstandthird/domodule/issues/comments{/number}","contents_url":"https://api.github.com/repos/firstandthird/domodule/contents/{+path}","compare_url":"https://api.github.com/repos/firstandthird/domodule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firstandthird/domodule/merges","archive_url":"https://api.github.com/repos/firstandthird/domodule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firstandthird/domodule/downloads","issues_url":"https://api.github.com/repos/firstandthird/domodule/issues{/number}","pulls_url":"https://api.github.com/repos/firstandthird/domodule/pulls{/number}","milestones_url":"https://api.github.com/repos/firstandthird/domodule/milestones{/number}","notifications_url":"https://api.github.com/repos/firstandthird/domodule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firstandthird/domodule/labels{/name}","releases_url":"https://api.github.com/repos/firstandthird/domodule/releases{/id}","deployments_url":"https://api.github.com/repos/firstandthird/domodule/deployments","created_at":"2016-03-25T17:17:43Z","updated_at":"2016-03-31T06:40:43Z","pushed_at":"2016-05-10T05:52:07Z","git_url":"git://github.com/firstandthird/domodule.git","ssh_url":"git@github.com:firstandthird/domodule.git","clone_url":"https://github.com/firstandthird/domodule.git","svn_url":"https://github.com/firstandthird/domodule","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"firstandthird:master","ref":"master","sha":"a491ae0df4cead3adc490d1dd70e52bb95b30eec","user":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"repo":{"id":54734488,"name":"domodule","full_name":"firstandthird/domodule","owner":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firstandthird/domodule","description":"Declarative dom module","fork":false,"url":"https://api.github.com/repos/firstandthird/domodule","forks_url":"https://api.github.com/repos/firstandthird/domodule/forks","keys_url":"https://api.github.com/repos/firstandthird/domodule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firstandthird/domodule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firstandthird/domodule/teams","hooks_url":"https://api.github.com/repos/firstandthird/domodule/hooks","issue_events_url":"https://api.github.com/repos/firstandthird/domodule/issues/events{/number}","events_url":"https://api.github.com/repos/firstandthird/domodule/events","assignees_url":"https://api.github.com/repos/firstandthird/domodule/assignees{/user}","branches_url":"https://api.github.com/repos/firstandthird/domodule/branches{/branch}","tags_url":"https://api.github.com/repos/firstandthird/domodule/tags","blobs_url":"https://api.github.com/repos/firstandthird/domodule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firstandthird/domodule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firstandthird/domodule/git/refs{/sha}","trees_url":"https://api.github.com/repos/firstandthird/domodule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firstandthird/domodule/statuses/{sha}","languages_url":"https://api.github.com/repos/firstandthird/domodule/languages","stargazers_url":"https://api.github.com/repos/firstandthird/domodule/stargazers","contributors_url":"https://api.github.com/repos/firstandthird/domodule/contributors","subscribers_url":"https://api.github.com/repos/firstandthird/domodule/subscribers","subscription_url":"https://api.github.com/repos/firstandthird/domodule/subscription","commits_url":"https://api.github.com/repos/firstandthird/domodule/commits{/sha}","git_commits_url":"https://api.github.com/repos/firstandthird/domodule/git/commits{/sha}","comments_url":"https://api.github.com/repos/firstandthird/domodule/comments{/number}","issue_comment_url":"https://api.github.com/repos/firstandthird/domodule/issues/comments{/number}","contents_url":"https://api.github.com/repos/firstandthird/domodule/contents/{+path}","compare_url":"https://api.github.com/repos/firstandthird/domodule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firstandthird/domodule/merges","archive_url":"https://api.github.com/repos/firstandthird/domodule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firstandthird/domodule/downloads","issues_url":"https://api.github.com/repos/firstandthird/domodule/issues{/number}","pulls_url":"https://api.github.com/repos/firstandthird/domodule/pulls{/number}","milestones_url":"https://api.github.com/repos/firstandthird/domodule/milestones{/number}","notifications_url":"https://api.github.com/repos/firstandthird/domodule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firstandthird/domodule/labels{/name}","releases_url":"https://api.github.com/repos/firstandthird/domodule/releases{/id}","deployments_url":"https://api.github.com/repos/firstandthird/domodule/deployments","created_at":"2016-03-25T17:17:43Z","updated_at":"2016-03-31T06:40:43Z","pushed_at":"2016-05-10T05:52:07Z","git_url":"git://github.com/firstandthird/domodule.git","ssh_url":"git@github.com:firstandthird/domodule.git","clone_url":"https://github.com/firstandthird/domodule.git","svn_url":"https://github.com/firstandthird/domodule","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/2"},"html":{"href":"https://github.com/firstandthird/domodule/pull/2"},"issue":{"href":"https://api.github.com/repos/firstandthird/domodule/issues/2"},"comments":{"href":"https://api.github.com/repos/firstandthird/domodule/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/firstandthird/domodule/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/firstandthird/domodule/statuses/9b679f9c11451a078e925fb3926a3d8f47e507a8"}}}}