stylesheets/_hack.scss in bem-constructor-0.5.0 vs stylesheets/_hack.scss in bem-constructor-0.6.0
- old
+ new
@@ -21,10 +21,15 @@
}
@function _hack() {
// You may not hack a hack
- $recursive-check: should-not-be-called-recursively('hack');
+ $outside-check: _should-not-be-called-within('hack');
+
+ // Return false in case error throwing is disabled
+ @if $outside-check == false {
+ @return false;
+ }
$selector: ();
$namespace: if($bem-use-namespaces, $hack-namespace, '');
// Check if we are hacking an element modified by a block modifier