rniemeyer / knockout-classBindingProvider

An alternate binding provider for Knockout that allows you to define your bindings in a JavaScript object and key into it from the markup.
MIT License
101 stars 27 forks source link

Add support for Knockout 3.0.0 #19

Closed mbest closed 10 years ago

mbest commented 10 years ago

Specifically, this solves the multiple calls issue, #18.

mbest commented 10 years ago

The hackish code that sets up a dummy _subscribable function is so that Knockout will track observables that are accessed from within getBindingAccessors. Otherwise, those observables aren't tracked and cannot update the bindings.

rniemeyer commented 10 years ago

Thanks @mbest for those changes. I definitely wouldn't have had a beat on the "hackish" part. Hopefully we can remove it at some point.

Changes are merged. Made a few stylistic changes, added a 2.x runner file, and updated references to use KO 3.0 for examples.