rniemeyer/knockout-classBindingProvider — pull request #13 by mberkom (2012-09-18 03:10:26+00:00)
Title: Binding registration keys

Adds a bindingRegistrationKeys array to optionally keep track of blocks of bindings that have been bound already and not bind them again. It would also be interesting to explore some sort of unregister functionality, but I'm not sure it'd be that useful...

```javascript
ko.bindingProvider.instance = new ko.classBindingProvider();

// returns true
ko.bindingProvider.instance.registerBindings({
"test": { ... }
}, "myModule");

ko.bindingProvider.instance.bindingIsRegistered("myModule"); // returns true

// returns false, registration failed because bindings have already been registered with that key
ko.bindingProvider.instance.registerBindings({
"test": { ... }
}, "myModule");
```