stylesheets/_element.scss in bem-constructor-0.3.0 vs stylesheets/_element.scss in bem-constructor-0.3.2

- old
+ new

@@ -11,11 +11,16 @@ // Log new element(s) $new-element: _bem-log-element($elements...); // Error checks - $inside-check: should-be-called-within('block'); - $outside-check: should-not-be-called-within('modifier', 'state', 'element'); + $inside-check: _should-be-called-within('block'); + $outside-check: _should-not-be-called-within('modifier', 'state', 'element'); + + // Return false in case error throwing is disabled + @if $inside-check == false or $outside-check == false { + @return false; + } $selector: (); @each $element in $elements { $e: #{&}#{$bem-element-separator}#{$element};