Closed golyshevd closed 7 years ago
BTW, in this case you don’t need use arrow function at all.
block('foo')(
prependContent()({
elem: 'x',
content: 'before'
}),
appendContent()({
elem: 'x',
content: 'after'
})
);
I detect that bug exists only with arrow function…
Same with usual functions: https://goo.gl/82s0Hr
@zxqfox of course. And I fixed it already.
bemjson
bemhtml
result
Live example https://goo.gl/5wXovY
guess appendContent/prependContent is just sugar for
content
+applyNext
, but this behaviour is unexpected