Closed sbmaxx closed 8 years ago
@veged @indutny
looks like applyNext()
returns mix
previously modified through push
:-/ but it should be new for each other b-page
block instance
That's what we decided to be not a bug of bem-xjst
in https://github.com/bem/bem-xjst/issues/92 so it should be fixed in templates.
@tadatuta looks similar, but I think it's not the same because there is no another template for mix
with static literally defined array
@veged After reading sources I don't see it's another bug:
mix()([{elem: 'body'}]),
// ...
mix()(function () {
var mix = applyNext() || [], ...;
mix.push({block: 'i-ua'});
// etc...
Still the same reference to static array.
hm... maybe it was already fixed when I look at islands
code
@veged Yeah, sorry. Here is the link: https://nda.ya.ru/3R8AaW
Considered as won't fix because of error in templates.
I think this is about wrong
b-page.bemhtml.js
template from islands — http://pastebin.com/JFVfYR1DPaste it into http://bem.github.io/bem-xjst/ and use this bemjson:
You will get:
It can be easily repaired by merging
mix mode
in template to http://pastebin.com/2nY1Z1tm