Skip to content

Instantly share code, notes, and snippets.

@bmac
Last active December 19, 2015 00:49
Show Gist options
  • Save bmac/5871105 to your computer and use it in GitHub Desktop.
Save bmac/5871105 to your computer and use it in GitHub Desktop.
ko.bindingHandlers['fastValue'] = {
init: function (element, valueAccessor, allBindingsAccessor) {
allBindingsAccessor()['valueUpdate'] = 'afterkeydown';
ko.bindingHandlers.value.init.apply(this, arguments);
},
update: ko.bindingHandlers.value.update
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment