I'm creating a custom binding that sets up focus and blur behavior in the init method. Otherwise, I'd like this custom binding to operate exactly like the native Knockout value binding.
ko.bindingHandlers.currencyValue = {
init: function (element, valueAccessor) {
$(element).focus(function () {
//focus behavior here...
});
$(element).blur(function () {
//blur behavior here...
});
//what do I put here to get the native value binding behavior?
},
update: function (element, valueAccessor) {
//what do I put here to get the native value binding behavior?
}