I have a function that is bound to the action of hiding a modal dialog.
I\'m using code similar to the accepted answer to this question.
$(\'#myModal\')
Use:
$('#myModal').off('hidden');
Why not unbind?
As of jQuery 3.0, .unbind() has been deprecated. It was superseded by the .off() method since jQuery 1.7, so its use was already discouraged.
Source: jQuery API.