jQuery: Migrate to .on(), .off(), .trigger()

This avoids methods that are deprecated in newer versions of jQuery.
This commit is contained in:
webzwo0i 2021-07-05 17:12:47 +02:00 committed by SamTV12345
parent 2f5b6b80e1
commit d5b981719f
47 changed files with 195 additions and 195 deletions

View file

@ -66,7 +66,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
if (browser.firefox) {
// Prevent "escape" from taking effect and canceling a comet connection;
// doesn't work if focus is on an iframe.
$(window).bind('keydown', (evt) => {
$(window).on('keydown', (evt) => {
if (evt.which === 27) {
evt.preventDefault();
}