-
Notifications
You must be signed in to change notification settings - Fork 4
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
allow binding handlers to pre-process bindings #18
Comments
It might be useful to have the pre-processor also be able to change the binding key (or have a different pre-processor function). For example, |
if 'click' binding added later (e.g. using ko.conventions), preprocess not working at all |
Good catch. I hadn't thought of that. Where can I find ko.conventions? |
check this: http://blog.stevensanderson.com/2011/12/21/knockout-2-0-0-released/ |
Thanks. |
My current idea is that the
The function is passed two parameters: |
One issue to address is that new bindings that are added by I also had another idea for the
|
insertPropertyAccessors
already does some pre-processing, but it may make sense to move this to the binding handlers. They would have a function that takes a value string and returns a new value string.I was thinking of this in the context of SteveSanderson/knockout/knockout#388 where it would be cool to be able to have something like
foreach: $wizardStep in steps
that would be translated toforeach: {data: steps, itemName: '$wizardStep'}
.The text was updated successfully, but these errors were encountered: