In the below code I need to execude show_error method with debounce (delay) and show_value method without delay.
Both methods needs in stop event only how to do it ?
$("#test").spinner({
stop: function(event , ui){
show_value();
},
stop: _.debounce(function(e, ui) {
show_error();
}, 300)
});
Call both functions in a single handler:
Or bind them separately: