Is it possible to unbind a .on "update" function?
Example:
price_slider_element.noUiSlider.on('update', function( values, handle ) {
// Code
});
Is it possible to unbind a .on "update" function?
Example:
price_slider_element.noUiSlider.on('update', function( values, handle ) {
// Code
});
If you want to unbind all the handlers for the event you can use off('event')
however that will remove all the event handlers for that event.
If you want to remove a specific one, you would want to make the callback a named function, or stored in a variable, and then use off('event', methodName)
and then only that particular handler will be removed.
function thing () {}
$(selector).on('click', thing);
//removes all click event handlers
$(selector).off('click');
//removes just one
$(selector).off('click', thing);