This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Now you can bind your checkbox selection to an observable array of model | |
// properties, instead of having to bind it to a property on the item | |
// itself (e.g. `isSelected`). | |
// For more information, see: | |
// http://kamranicus.com/Blog/Posts/61/a-smarter-checked-binding-for-knockoutjs | |
// For a demo, see: | |
// http://jsfiddle.net/kamranayub/G8YZU | |
var oldValueBinding = ko.bindingHandlers['value']; |