Skip to content

Commit

Permalink
Merge pull request #474 from Murdalay/v2
Browse files Browse the repository at this point in the history
fix for mods --> elemMod
  • Loading branch information
tadatuta committed Mar 30, 2014
2 parents d7bf9ae + c8a26d6 commit a281f1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions common.docs/reference/reference.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ The next set of the keywords for BEM-entities is available:
<td><pre><code>block('b-head-logo').mod('size', 'big')</code></pre></td>
</tr>
<tr>
<td><code>mods</code></td>
<td>the name and value of block's element</td>
<td><code>elemMod</code></td>
<td>the name and value of element's modifier</td>
<td>identifier <code>[a-zA-Z0-9-]+ </code> or arbitrary js-expression</td>
<td><pre><code>block('b-head-logo').elem('text').mods('size', 'big')</code></pre></td>
<td><pre><code>block('b-head-logo').elem('text').elemMod('size', 'big')</code></pre></td>
</tr>
</table>

Expand Down Expand Up @@ -662,7 +662,7 @@ It mens that the given predicate will be evaluated to true when the correspondin

For checking of the standard modes the next keywords are used:

* `default` (`def`)
* `def` (`default` mode)
* `tag`
* `bem`
* `mix`
Expand Down
8 changes: 4 additions & 4 deletions common.docs/reference/reference.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,10 @@ block('foo').elem('bar')
<td><pre><code>block ('b-head-logo').mod('size', 'big')</code></pre></td>
</tr>
<tr>
<td><code>mods</code></td>
<td><code>elemMod</code></td>
<td>имя и значение модификатора элемента</td>
<td>идентификатор <code>[a-zA-Z0-9-]+ </code>или произвольное js-выражение</td>
<td><pre><code>block('b-head-logo').elem('text').mods('size', 'big')</code></pre></td>
<td><pre><code>block('b-head-logo').elem('text').elemMod('size', 'big')</code></pre></td>
</tr>
</table>

Expand All @@ -650,7 +650,7 @@ block('foo').elem('bar')

* `block('input').mod('theme', 'black').elem('hint')` задает элемент `hint`, вложенный в блок `input` с **модификатором блока**
`theme` в значении `black`.
* `block('input').elem('hint').mods('visibility', 'visible')` задает элемент `hint` с **модификатором элемента** `visibility`
* `block('input').elem('hint').elemMod('visibility', 'visible')` задает элемент `hint` с **модификатором элемента** `visibility`
в значении `visible` вложенный в блок `input`.
* `block('input').mod('theme', 'black').elem('hint').elemMod('visibility', 'visible')` задает элемент `hint` с **модификатором
элемента** `visibility` в значении `visible` вложенный в блок `input` с **модификатором блока** `theme` в значении
Expand Down Expand Up @@ -687,7 +687,7 @@ block('my-block')

Для проверки стандартных мод используются ключевые слова:

* `default` (`def`)
* `def` (для моды `default`)
* `tag`
* `bem`
* `mix`
Expand Down

0 comments on commit a281f1e

Please sign in to comment.