Closed tadatuta closed 7 years ago
require('bem-xjst').bemhtml.compile('') /* { apply: [Function: apply], compile: [Function: compile], BEMContext: { [Function: ContextChild] super_: [Function: Context] } } */ require('bem-xjst').bemhtml.compile('').compile('') // undefined
compile() method of template instance should return itself
compile()
returns undefined
undefined
cc @zxqfox
Yeah, it looks like inconcistency between compiles. Also, would be nice to have a way to not mutate instance (I thought compile does not). ;-(
Expected Behavior
compile()
method of template instance should return itselfActual Behavior
returns
undefined