Skip to content
New issue

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

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

Already on GitHub? # to your account

options.data ignores prototype #1236

Closed
dwelle opened this issue Jul 19, 2016 · 1 comment
Closed

options.data ignores prototype #1236

dwelle opened this issue Jul 19, 2016 · 1 comment

Comments

@dwelle
Copy link

dwelle commented Jul 19, 2016

I'm sure that v2/v3 supported data variables defined in prototype, but current verson 4.0.5 does not seem to. Nothing in release notes. Am I mistaken and it never looked into prototype?

template({}, { data: Object.create({ val: 42 }) });

// .hbs
{{@val}} // -> undefiend
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants