SteveSanderson / knockout-es5

Knockout.js meets ECMAScript 5 properties
158 stars 39 forks source link

Support for custom two-way bindings #48

Open pmaselkowski opened 8 years ago

pmaselkowski commented 8 years ago

I found this code somewhere (in comments?), and tweaked it to support direct array values, ie:

bindingHandler: [param:value]

However array values are one way only. I don't have other idea how to do this, it's near:

if(val.match(/^\[/)){
...

See #2

pmaselkowski commented 7 years ago

Forgot to make branch for it... Only commit 322b624 is relevant

pmaselkowski commented 7 years ago

Anyway this is now cannot be merged, as too many changes were made