Suppose below is my code. i am not responsible to make change directly to code. hence i am doing it via console. and i want to unbind this html & body animation but someotherFunction() should work as it is. there may be too many functions as well beyond my imagination like below and i want all to work as it is but only animate should be unbind.
$("#button").click(function() {
$('html, body').animate({
scrollTop: $("#myDiv").offset().top
}, 2000);
someOtherFunction();
someMoreFunctionIDontKnowAbout();
});