stylesheets/_modifier.scss in bem-constructor-0.3.0 vs stylesheets/_modifier.scss in bem-constructor-0.3.2
- old
+ new
@@ -15,9 +15,14 @@
// Error checks
$inside-check: _should-be-called-within('block');
$outside-check: _should-not-be-called-within('modifier');
+ // Return false in case error throwing is disabled
+ @if $inside-check == false or $outside-check == false {
+ @return false;
+ }
+
$selector: ();
@each $modifier in $modifiers {
$new-selector: ();