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

Add tko-switch-case.js #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danieldickison
Copy link

This is a port of the original knockout-switch-case.js to work with the current version of tko. I initially tried to do a minimally invasive and backwards compatible change in knockout-switch-case.js itself but I couldn't get it to work well with the wrapped if binding handler now being implemented as a subclass BindingHandler while the switch/case handler keeps its init/update implementation.

I didn't port the case.visible binding as, from what I understand, dots in binding names are no longer supported.

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.

None yet

1 participant