Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile method of template instance should return itself #408

Closed
tadatuta opened this issue Jan 28, 2017 · 2 comments
Closed

compile method of template instance should return itself #408

tadatuta opened this issue Jan 28, 2017 · 2 comments
Assignees

Comments

@tadatuta
Copy link
Member

require('bem-xjst').bemhtml.compile('')
/*
{ apply: [Function: apply],
  compile: [Function: compile],
  BEMContext: { [Function: ContextChild] super_: [Function: Context] } }
*/
require('bem-xjst').bemhtml.compile('').compile('') // undefined

Expected Behavior

compile() method of template instance should return itself

Actual Behavior

returns undefined

@tadatuta
Copy link
Member Author

cc @zxqfox

@qfox
Copy link
Member

qfox commented Jan 28, 2017

Yeah, it looks like inconcistency between compiles.
Also, would be nice to have a way to not mutate instance (I thought compile does not). ;-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants