jquery-bem
jquery-bem copied to clipboard
setMod works wrong if block has mix
<div class="button">
<span class="button__control clearfix">ok</span>
</div>
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.