Closed hcodes closed 9 years ago
block('b1').def()(function() { function a() { return x; } var x = 1; return a(); })
После компиляции:
function __$b1(__$ctx, __$ref) { function a__$0() { return x; } var x__$1 = 1; return a__$0(); }
Если в шаблоне var x поднять выше function a(), то все ок.
Will not be fixed in favor of bem-xjst@4.x.
bem-xjst@4.x
После компиляции:
Если в шаблоне var x поднять выше function a(), то все ок.