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

options.context missing in helper options #730

Open
1 of 5 tasks
bmomberger-bitovi opened this issue Feb 7, 2022 · 0 comments
Open
1 of 5 tasks

options.context missing in helper options #730

bmomberger-bitovi opened this issue Feb 7, 2022 · 0 comments
Labels

Comments

@bmomberger-bitovi
Copy link
Contributor

How often can you reproduce it?

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:

https://canjs.com/doc/can-stache.helperOptions.html specifies that the helperOptions object passed into stache helpers should have a context property whose value is the current context when the stache is executed. However, this property is missing from all stache helper executions.

Underlying Reason:

The context property on HelperOptions is defined as a lazy value. Lazy values are always defined as non-enumerable, so when the core helperOptions object is cloned using can-assign before the helper execution, the context property is not assigned to the clone.

Environment:

Software Version
can-stache version 5.1.1
Browser Chrome
Operating system Mac OS Catalina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant