stylesheets/_theme.scss in bem-constructor-0.5.0 vs stylesheets/_theme.scss in bem-constructor-0.6.0

- old
+ new

@@ -6,10 +6,15 @@ @function _theme($themes...) { // If you try to hack a hack you can break the internet. // So please, no one try it. - $recursive-test: should-not-be-called-recursively('theme'); + $outside-check: _should-not-be-called-within('theme'); + + // Return false in case error throwing is disabled + @if $outside-check == false { + @return false; + } $selector: (); $namespace: if($bem-use-namespaces, $bem-theme-namespace + '-', ''); @each $theme in $themes {