SteveSanderson/knockout — pull request #921 by mbest (2013-04-17 12:24:18+00:00)
Title: Independent binding support: bindingAttributeSyntax updates 1

After #909, here's the next part of the the process to support independent bindings.

1. Add support within `bindingAttributeSyntax.js` for function-wrapped bindings. There are two new interfaces to support this: `ko.bindingProvider.getBindingAccessors` and `ko.applyBindingAccessorsToNode`.
2. Retain support in `bindingAttributeSyntax.js` for the existing parallel interfaces `ko.bindingProvider.getBindings` and `ko.applyBindingsToNode`, supporting old-style key/value bindings. These interfaces also allow individual binding values to be function-wrapped using `ko.bindingValueIsAccessor` to mark them as such.
3. Add `getBindingAccessors` to `ko.bindingProvider`.
4. Use `ko.applyBindingAccessorsToNode` in `ko.templateRewriting`.