Skip to content

Instantly share code, notes, and snippets.

@zappingseb
Created October 3, 2018 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zappingseb/93009ba6800b13c288a090fcac4dd541 to your computer and use it in GitHub Desktop.
Save zappingseb/93009ba6800b13c288a090fcac4dd541 to your computer and use it in GitHub Desktop.
subscribe: function(el, callback) {
// the jQuery "change" function allows you
// to notice any change to your input elements
$(el).on('change.input', function(event) {
callback(false);
// When called with false, it will NOT use the rate policy,
// so changes will be sent immediately
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment