{"action":"created","comment":{"url":"https://api.github.com/repos/bem/bem-core/pulls/comments/34976883","id":34976883,"diff_hunk":"@@ -0,0 +1,176 @@\n+<a name=\"states\"></a>\n+## Состояния блока\n+\n+Проектируя динамический блок в стиле БЭМ, нужно представить всю логику\n+изменений, происходящих в нем, как набор **состояний** блока. Тогда\n+поведение блока определяется **триггерами** — callback-функциями, которые\n+выполняются при переходе блока из одного состояния в другое.\n+\n+Это позволяет писать код блока в декларативном стиле как набор утверждений вида: `описание состояния` — `действия, выполняемые при переходе в данное состояние`.\n+\n+<a name=\"modifiers\"></a>\n+### Модификаторы\n+\n+Согласно БЭМ-методологии, состояние блока и его элементов описывается\n+**модификаторами**.\n+\n+Модификатор указывает, в каком из возможных состояний находится блок. Модификатор представляет собой пару: **имя** и **значение**. Список допустимых значений модификатора описывает набор состояний блока. Например, для описания размеров блока\n+можно использовать модификатор `size` с допустимыми значениями `s`, `m` и\n+`l`.\n+\n+**Простой модификатор** — частный случай, когда важно только наличие\n+или отсутствие модификатора у блока, а его значение несущественно. Например, модификатор описывающий состояние «отключен»: `disabled`. Модификатор с неуказанным значением `i-bem.js` интерпретирует как булев и автоматически присваивает ему значение `true`.","path":"common.docs/i-bem-js/i-bem-js-states.ru.md","position":22,"original_position":22,"commit_id":"62d37151b5f1bafd37f44049e86ab079f6af7e9d","original_commit_id":"62d37151b5f1bafd37f44049e86ab079f6af7e9d","user":{"login":"maslinych","id":784009,"avatar_url":"https://avatars.githubusercontent.com/u/784009?v=3","gravatar_id":"","url":"https://api.github.com/users/maslinych","html_url":"https://github.com/maslinych","followers_url":"https://api.github.com/users/maslinych/followers","following_url":"https://api.github.com/users/maslinych/following{/other_user}","gists_url":"https://api.github.com/users/maslinych/gists{/gist_id}","starred_url":"https://api.github.com/users/maslinych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maslinych/subscriptions","organizations_url":"https://api.github.com/users/maslinych/orgs","repos_url":"https://api.github.com/users/maslinych/repos","events_url":"https://api.github.com/users/maslinych/events{/privacy}","received_events_url":"https://api.github.com/users/maslinych/received_events","type":"User","site_admin":false},"body":"запятая перед «описывающий»","created_at":"2015-07-20T08:52:44Z","updated_at":"2015-07-20T08:52:44Z","html_url":"https://github.com/bem/bem-core/pull/1029#discussion_r34976883","pull_request_url":"https://api.github.com/repos/bem/bem-core/pulls/1029","_links":{"self":{"href":"https://api.github.com/repos/bem/bem-core/pulls/comments/34976883"},"html":{"href":"https://github.com/bem/bem-core/pull/1029#discussion_r34976883"},"pull_request":{"href":"https://api.github.com/repos/bem/bem-core/pulls/1029"}}},"pull_request":{"url":"https://api.github.com/repos/bem/bem-core/pulls/1029","id":36831312,"html_url":"https://github.com/bem/bem-core/pull/1029","diff_url":"https://github.com/bem/bem-core/pull/1029.diff","patch_url":"https://github.com/bem/bem-core/pull/1029.patch","issue_url":"https://api.github.com/repos/bem/bem-core/issues/1029","number":1029,"state":"open","locked":false,"title":"i-bem: the reference update and simplification (close #690)","user":{"login":"Murdalay","id":3054826,"avatar_url":"https://avatars.githubusercontent.com/u/3054826?v=3","gravatar_id":"","url":"https://api.github.com/users/Murdalay","html_url":"https://github.com/Murdalay","followers_url":"https://api.github.com/users/Murdalay/followers","following_url":"https://api.github.com/users/Murdalay/following{/other_user}","gists_url":"https://api.github.com/users/Murdalay/gists{/gist_id}","starred_url":"https://api.github.com/users/Murdalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murdalay/subscriptions","organizations_url":"https://api.github.com/users/Murdalay/orgs","repos_url":"https://api.github.com/users/Murdalay/repos","events_url":"https://api.github.com/users/Murdalay/events{/privacy}","received_events_url":"https://api.github.com/users/Murdalay/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-03T13:19:51Z","updated_at":"2015-07-20T08:52:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"409d6087815f5a1966cd4bdb88691f0abd2a4de7","assignee":null,"milestone":{"url":"https://api.github.com/repos/bem/bem-core/milestones/12","html_url":"https://github.com/bem/bem-core/milestones/2.7","labels_url":"https://api.github.com/repos/bem/bem-core/milestones/12/labels","id":1075000,"number":12,"title":"2.7","description":"","creator":{"login":"narqo","id":88045,"avatar_url":"https://avatars.githubusercontent.com/u/88045?v=3","gravatar_id":"","url":"https://api.github.com/users/narqo","html_url":"https://github.com/narqo","followers_url":"https://api.github.com/users/narqo/followers","following_url":"https://api.github.com/users/narqo/following{/other_user}","gists_url":"https://api.github.com/users/narqo/gists{/gist_id}","starred_url":"https://api.github.com/users/narqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narqo/subscriptions","organizations_url":"https://api.github.com/users/narqo/orgs","repos_url":"https://api.github.com/users/narqo/repos","events_url":"https://api.github.com/users/narqo/events{/privacy}","received_events_url":"https://api.github.com/users/narqo/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":8,"state":"open","created_at":"2015-04-20T10:56:59Z","updated_at":"2015-07-13T21:02:28Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/bem/bem-core/pulls/1029/commits","review_comments_url":"https://api.github.com/repos/bem/bem-core/pulls/1029/comments","review_comment_url":"https://api.github.com/repos/bem/bem-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bem/bem-core/issues/1029/comments","statuses_url":"https://api.github.com/repos/bem/bem-core/statuses/62d37151b5f1bafd37f44049e86ab079f6af7e9d","head":{"label":"bem:issues/#690@v2","ref":"issues/#690@v2","sha":"62d37151b5f1bafd37f44049e86ab079f6af7e9d","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":8100172,"name":"bem-core","full_name":"bem/bem-core","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-core","description":"BEM Core Library","fork":false,"url":"https://api.github.com/repos/bem/bem-core","forks_url":"https://api.github.com/repos/bem/bem-core/forks","keys_url":"https://api.github.com/repos/bem/bem-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-core/teams","hooks_url":"https://api.github.com/repos/bem/bem-core/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-core/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-core/events","assignees_url":"https://api.github.com/repos/bem/bem-core/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-core/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-core/tags","blobs_url":"https://api.github.com/repos/bem/bem-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-core/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-core/languages","stargazers_url":"https://api.github.com/repos/bem/bem-core/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-core/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-core/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-core/subscription","commits_url":"https://api.github.com/repos/bem/bem-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem/bem-core/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-core/merges","archive_url":"https://api.github.com/repos/bem/bem-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-core/downloads","issues_url":"https://api.github.com/repos/bem/bem-core/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-core/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-core/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-core/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-core/releases{/id}","created_at":"2013-02-08T19:53:17Z","updated_at":"2015-07-14T01:20:04Z","pushed_at":"2015-07-16T12:24:52Z","git_url":"git://github.com/bem/bem-core.git","ssh_url":"git@github.com:bem/bem-core.git","clone_url":"https://github.com/bem/bem-core.git","svn_url":"https://github.com/bem/bem-core","homepage":"https://bem.info/libs/bem-core","size":9669,"stargazers_count":130,"watchers_count":130,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":86,"forks":70,"open_issues":86,"watchers":130,"default_branch":"v2"}},"base":{"label":"bem:v2","ref":"v2","sha":"f092cbee15bbe32c800f80b02860c993090dae82","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":8100172,"name":"bem-core","full_name":"bem/bem-core","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-core","description":"BEM Core Library","fork":false,"url":"https://api.github.com/repos/bem/bem-core","forks_url":"https://api.github.com/repos/bem/bem-core/forks","keys_url":"https://api.github.com/repos/bem/bem-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-core/teams","hooks_url":"https://api.github.com/repos/bem/bem-core/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-core/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-core/events","assignees_url":"https://api.github.com/repos/bem/bem-core/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-core/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-core/tags","blobs_url":"https://api.github.com/repos/bem/bem-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-core/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-core/languages","stargazers_url":"https://api.github.com/repos/bem/bem-core/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-core/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-core/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-core/subscription","commits_url":"https://api.github.com/repos/bem/bem-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem/bem-core/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-core/merges","archive_url":"https://api.github.com/repos/bem/bem-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-core/downloads","issues_url":"https://api.github.com/repos/bem/bem-core/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-core/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-core/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-core/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-core/releases{/id}","created_at":"2013-02-08T19:53:17Z","updated_at":"2015-07-14T01:20:04Z","pushed_at":"2015-07-16T12:24:52Z","git_url":"git://github.com/bem/bem-core.git","ssh_url":"git@github.com:bem/bem-core.git","clone_url":"https://github.com/bem/bem-core.git","svn_url":"https://github.com/bem/bem-core","homepage":"https://bem.info/libs/bem-core","size":9669,"stargazers_count":130,"watchers_count":130,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":86,"forks":70,"open_issues":86,"watchers":130,"default_branch":"v2"}},"_links":{"self":{"href":"https://api.github.com/repos/bem/bem-core/pulls/1029"},"html":{"href":"https://github.com/bem/bem-core/pull/1029"},"issue":{"href":"https://api.github.com/repos/bem/bem-core/issues/1029"},"comments":{"href":"https://api.github.com/repos/bem/bem-core/issues/1029/comments"},"review_comments":{"href":"https://api.github.com/repos/bem/bem-core/pulls/1029/comments"},"review_comment":{"href":"https://api.github.com/repos/bem/bem-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bem/bem-core/pulls/1029/commits"},"statuses":{"href":"https://api.github.com/repos/bem/bem-core/statuses/62d37151b5f1bafd37f44049e86ab079f6af7e9d"}}}}