jquery-bem icon indicating copy to clipboard operation
jquery-bem copied to clipboard

[Deprecaetd] Plugin for comfortable work with BEM DOM from jQuery

Results 6 jquery-bem issues
Sort by recently updated
recently updated
newest added

In jQuery 3.0 was removed the selector property. It was the only way to determine the block if the node has few block-level classes. See example: ```html ``` `$('.block-b').elem('elem')` should...

```html ok ``` ` jQuery('.button').elem('control').setMod('visibility','hidden'); // gives me class="button__control clearfix clearfix_visibility_hidden" ` If i'm trying to add mod to control element it happens with clearfix not with button__control.

``` jade textarea.textarea.textarea__control ``` ``` js $('.textarea').each(function(index, el) { var $that = $(this); var $control = $that.elem('control'); $control.focusin(function(event) { $(this).block().mod('focused', true); }); $control.focusout(function(event) { $(this).block().mod('focused', false); }); }); ``` JqueryBEM...

If there are several identical blocks, how to choose elements appertaining to that unit. http://codepen.io/Zoxon/pen/aNawXL?editors=1010 See console.log output, `$('.accordion').elem('head')` select all elements

`` ``` $('.foo').each(function () { $(this).mod('modifier', true); }); ``` Result `` I know, that `ctx()` helps in this case, but do you think that it should remember context?

enhancement

`` ``` $('.bar').hasMod('js') // true $('.bar').hasMod('js', 'inited') // true ```

bug