Skip to content

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