{"action":"created","comment":{"url":"https://api.github.com/repos/awinogradov/react-bl/pulls/comments/64695467","id":64695467,"diff_hunk":"@@ -0,0 +1,47 @@\n+oninit(function(exports, shared) {\n+    var BEM = shared.BEMContext.prototype.components['i-bem-react'];\n+\n+    shared.BEMContext.prototype.components.Control = class Control extends BEM {\n+        constructor (props) {\n+            super(props);\n+\n+            this._onMouseEnter = this._onMouseEnter.bind(this);\n+            this._onMouseLeave = this._onMouseLeave.bind(this);\n+            this._onFocus = this._onFocus.bind(this);\n+            this._onBlur = this._onBlur.bind(this);\n+        }\n+        componentDidMount () {\n+            super.componentDidMount();\n+            this.domNode.addEventListener('mouseenter', this._onMouseEnter);\n+            this.refs.control.addEventListener('focus', this._onFocus);\n+        }\n+        _onFocus () {\n+            if (this.state.mods.disabled) return;\n+            this.setMod('focused', true);\n+            this.setMod('focused-hard', true); // just for test with button\n+            this.refs.control.addEventListener('blur', this._onBlur);","path":"src/components/control/control.bemhtml.js","position":22,"original_position":22,"commit_id":"85b67f25b00b8552d59c5083baa6fb6b31235376","original_commit_id":"85b67f25b00b8552d59c5083baa6fb6b31235376","user":{"login":"Guria","id":36270,"avatar_url":"https://avatars.githubusercontent.com/u/36270?v=3","gravatar_id":"","url":"https://api.github.com/users/Guria","html_url":"https://github.com/Guria","followers_url":"https://api.github.com/users/Guria/followers","following_url":"https://api.github.com/users/Guria/following{/other_user}","gists_url":"https://api.github.com/users/Guria/gists{/gist_id}","starred_url":"https://api.github.com/users/Guria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guria/subscriptions","organizations_url":"https://api.github.com/users/Guria/orgs","repos_url":"https://api.github.com/users/Guria/repos","events_url":"https://api.github.com/users/Guria/events{/privacy}","received_events_url":"https://api.github.com/users/Guria/received_events","type":"User","site_admin":false},"body":"ref to `control` must be set in bemhtml template","created_at":"2016-05-26T06:06:44Z","updated_at":"2016-05-26T06:06:44Z","html_url":"https://github.com/awinogradov/react-bl/pull/53#discussion_r64695467","pull_request_url":"https://api.github.com/repos/awinogradov/react-bl/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/comments/64695467"},"html":{"href":"https://github.com/awinogradov/react-bl/pull/53#discussion_r64695467"},"pull_request":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/awinogradov/react-bl/pulls/53","id":71504179,"html_url":"https://github.com/awinogradov/react-bl/pull/53","diff_url":"https://github.com/awinogradov/react-bl/pull/53.diff","patch_url":"https://github.com/awinogradov/react-bl/pull/53.patch","issue_url":"https://api.github.com/repos/awinogradov/react-bl/issues/53","number":53,"state":"open","locked":false,"title":"wip: PoC of alternative approach with components in bemhtml templates","user":{"login":"Guria","id":36270,"avatar_url":"https://avatars.githubusercontent.com/u/36270?v=3","gravatar_id":"","url":"https://api.github.com/users/Guria","html_url":"https://github.com/Guria","followers_url":"https://api.github.com/users/Guria/followers","following_url":"https://api.github.com/users/Guria/following{/other_user}","gists_url":"https://api.github.com/users/Guria/gists{/gist_id}","starred_url":"https://api.github.com/users/Guria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guria/subscriptions","organizations_url":"https://api.github.com/users/Guria/orgs","repos_url":"https://api.github.com/users/Guria/repos","events_url":"https://api.github.com/users/Guria/events{/privacy}","received_events_url":"https://api.github.com/users/Guria/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-26T06:00:16Z","updated_at":"2016-05-26T06:06:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ceb4d4ab3044d76ca01369dfeaa9c8ca7e21c4c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/awinogradov/react-bl/pulls/53/commits","review_comments_url":"https://api.github.com/repos/awinogradov/react-bl/pulls/53/comments","review_comment_url":"https://api.github.com/repos/awinogradov/react-bl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awinogradov/react-bl/issues/53/comments","statuses_url":"https://api.github.com/repos/awinogradov/react-bl/statuses/85b67f25b00b8552d59c5083baa6fb6b31235376","head":{"label":"awinogradov:alt","ref":"alt","sha":"85b67f25b00b8552d59c5083baa6fb6b31235376","user":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"repo":{"id":55492421,"name":"react-bl","full_name":"awinogradov/react-bl","owner":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/awinogradov/react-bl","description":"React components powered by XJST","fork":false,"url":"https://api.github.com/repos/awinogradov/react-bl","forks_url":"https://api.github.com/repos/awinogradov/react-bl/forks","keys_url":"https://api.github.com/repos/awinogradov/react-bl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awinogradov/react-bl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awinogradov/react-bl/teams","hooks_url":"https://api.github.com/repos/awinogradov/react-bl/hooks","issue_events_url":"https://api.github.com/repos/awinogradov/react-bl/issues/events{/number}","events_url":"https://api.github.com/repos/awinogradov/react-bl/events","assignees_url":"https://api.github.com/repos/awinogradov/react-bl/assignees{/user}","branches_url":"https://api.github.com/repos/awinogradov/react-bl/branches{/branch}","tags_url":"https://api.github.com/repos/awinogradov/react-bl/tags","blobs_url":"https://api.github.com/repos/awinogradov/react-bl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awinogradov/react-bl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awinogradov/react-bl/git/refs{/sha}","trees_url":"https://api.github.com/repos/awinogradov/react-bl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awinogradov/react-bl/statuses/{sha}","languages_url":"https://api.github.com/repos/awinogradov/react-bl/languages","stargazers_url":"https://api.github.com/repos/awinogradov/react-bl/stargazers","contributors_url":"https://api.github.com/repos/awinogradov/react-bl/contributors","subscribers_url":"https://api.github.com/repos/awinogradov/react-bl/subscribers","subscription_url":"https://api.github.com/repos/awinogradov/react-bl/subscription","commits_url":"https://api.github.com/repos/awinogradov/react-bl/commits{/sha}","git_commits_url":"https://api.github.com/repos/awinogradov/react-bl/git/commits{/sha}","comments_url":"https://api.github.com/repos/awinogradov/react-bl/comments{/number}","issue_comment_url":"https://api.github.com/repos/awinogradov/react-bl/issues/comments{/number}","contents_url":"https://api.github.com/repos/awinogradov/react-bl/contents/{+path}","compare_url":"https://api.github.com/repos/awinogradov/react-bl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awinogradov/react-bl/merges","archive_url":"https://api.github.com/repos/awinogradov/react-bl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awinogradov/react-bl/downloads","issues_url":"https://api.github.com/repos/awinogradov/react-bl/issues{/number}","pulls_url":"https://api.github.com/repos/awinogradov/react-bl/pulls{/number}","milestones_url":"https://api.github.com/repos/awinogradov/react-bl/milestones{/number}","notifications_url":"https://api.github.com/repos/awinogradov/react-bl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awinogradov/react-bl/labels{/name}","releases_url":"https://api.github.com/repos/awinogradov/react-bl/releases{/id}","deployments_url":"https://api.github.com/repos/awinogradov/react-bl/deployments","created_at":"2016-04-05T09:14:08Z","updated_at":"2016-05-25T09:30:58Z","pushed_at":"2016-05-26T06:00:17Z","git_url":"git://github.com/awinogradov/react-bl.git","ssh_url":"git@github.com:awinogradov/react-bl.git","clone_url":"https://github.com/awinogradov/react-bl.git","svn_url":"https://github.com/awinogradov/react-bl","homepage":" http://awinogradov.github.io/react-bl","size":1201,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":18,"default_branch":"master"}},"base":{"label":"awinogradov:master","ref":"master","sha":"aa1f61832b5e4cdc0f17cb430dc542e71a8bc988","user":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"repo":{"id":55492421,"name":"react-bl","full_name":"awinogradov/react-bl","owner":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/awinogradov/react-bl","description":"React components powered by XJST","fork":false,"url":"https://api.github.com/repos/awinogradov/react-bl","forks_url":"https://api.github.com/repos/awinogradov/react-bl/forks","keys_url":"https://api.github.com/repos/awinogradov/react-bl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awinogradov/react-bl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awinogradov/react-bl/teams","hooks_url":"https://api.github.com/repos/awinogradov/react-bl/hooks","issue_events_url":"https://api.github.com/repos/awinogradov/react-bl/issues/events{/number}","events_url":"https://api.github.com/repos/awinogradov/react-bl/events","assignees_url":"https://api.github.com/repos/awinogradov/react-bl/assignees{/user}","branches_url":"https://api.github.com/repos/awinogradov/react-bl/branches{/branch}","tags_url":"https://api.github.com/repos/awinogradov/react-bl/tags","blobs_url":"https://api.github.com/repos/awinogradov/react-bl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awinogradov/react-bl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awinogradov/react-bl/git/refs{/sha}","trees_url":"https://api.github.com/repos/awinogradov/react-bl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awinogradov/react-bl/statuses/{sha}","languages_url":"https://api.github.com/repos/awinogradov/react-bl/languages","stargazers_url":"https://api.github.com/repos/awinogradov/react-bl/stargazers","contributors_url":"https://api.github.com/repos/awinogradov/react-bl/contributors","subscribers_url":"https://api.github.com/repos/awinogradov/react-bl/subscribers","subscription_url":"https://api.github.com/repos/awinogradov/react-bl/subscription","commits_url":"https://api.github.com/repos/awinogradov/react-bl/commits{/sha}","git_commits_url":"https://api.github.com/repos/awinogradov/react-bl/git/commits{/sha}","comments_url":"https://api.github.com/repos/awinogradov/react-bl/comments{/number}","issue_comment_url":"https://api.github.com/repos/awinogradov/react-bl/issues/comments{/number}","contents_url":"https://api.github.com/repos/awinogradov/react-bl/contents/{+path}","compare_url":"https://api.github.com/repos/awinogradov/react-bl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awinogradov/react-bl/merges","archive_url":"https://api.github.com/repos/awinogradov/react-bl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awinogradov/react-bl/downloads","issues_url":"https://api.github.com/repos/awinogradov/react-bl/issues{/number}","pulls_url":"https://api.github.com/repos/awinogradov/react-bl/pulls{/number}","milestones_url":"https://api.github.com/repos/awinogradov/react-bl/milestones{/number}","notifications_url":"https://api.github.com/repos/awinogradov/react-bl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awinogradov/react-bl/labels{/name}","releases_url":"https://api.github.com/repos/awinogradov/react-bl/releases{/id}","deployments_url":"https://api.github.com/repos/awinogradov/react-bl/deployments","created_at":"2016-04-05T09:14:08Z","updated_at":"2016-05-25T09:30:58Z","pushed_at":"2016-05-26T06:00:17Z","git_url":"git://github.com/awinogradov/react-bl.git","ssh_url":"git@github.com:awinogradov/react-bl.git","clone_url":"https://github.com/awinogradov/react-bl.git","svn_url":"https://github.com/awinogradov/react-bl","homepage":" http://awinogradov.github.io/react-bl","size":1201,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/53"},"html":{"href":"https://github.com/awinogradov/react-bl/pull/53"},"issue":{"href":"https://api.github.com/repos/awinogradov/react-bl/issues/53"},"comments":{"href":"https://api.github.com/repos/awinogradov/react-bl/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awinogradov/react-bl/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/awinogradov/react-bl/statuses/85b67f25b00b8552d59c5083baa6fb6b31235376"}}}}
{"actor":{"display_login":"Guria"}}