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

support nullish contexts for binding with :by #511

Merged
merged 2 commits into from
Apr 15, 2019

Conversation

michaelzcheng
Copy link
Contributor

This resolves: #510

We want to support event binding to a context which might be undefined through the :by attribute.

The change in functionality will create an observation which watches the context suggested through :by and rebinds the actual event handler when that context changes. This permits null values, initial or otherwise.

Please provide feedback on test cases, if you can think of something that I missed!

@bmomberger-bitovi
Copy link
Contributor

Confirmed working for my intended use case via https://jsbin.com/nolobokuyo/1/edit?html,js,output

@bmomberger-bitovi bmomberger-bitovi merged commit 046ef49 into master Apr 15, 2019
@bmomberger-bitovi bmomberger-bitovi deleted the 510-null-by-context branch April 15, 2019 16:54
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

Successfully merging this pull request may close these issues.

on:EVENT:by:KEY throws error when KEY is undefined in scope.
2 participants