Skip to content

Instantly share code, notes, and snippets.

Kamran Ayub kamranayub

Block or report user

Report or block kamranayub

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kamranayub
kamranayub / knockout.extendedCheckedBinding.js
Last active Dec 10, 2015 — forked from anonymous/knockout.extendedCheckedBinding.js
A smarter `checked` and `value` binding that play nice together.
View knockout.extendedCheckedBinding.js
// 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'];
You can’t perform that action at this time.