Example see : https://jsfiddle.net/ee424v3e/12/
My code modification:
Bacon.$.checkBoxValue = function(element, initValue) {
return Bacon.Binding({
initValue: initValue,
get: function() {
return element.prop("checked") || false;
},
events: element.asEventStream("change"),
set: function(value) {
return element.prop("checked", value || false);
}
});
};