From 67b61d69dca9bdb12db1e2115b6a10a7da64932b Mon Sep 17 00:00:00 2001 From: Xaekai Date: Sat, 22 Jan 2022 16:18:51 -0800 Subject: [PATCH] Eliminate jQuery event shorthands --- package.json | 1 + player/custom-embed.coffee | 2 +- www/.eslintrc.json | 9 +++ www/js/callbacks.js | 14 ++--- www/js/paginator.js | 6 +- www/js/ui.js | 106 +++++++++++++++++------------------ www/js/util.js | 110 ++++++++++++++++++------------------- 7 files changed, 129 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index 569d6787..99064a4a 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "babel-plugin-add-module-exports": "^1.0.4", "coffeescript": "^1.9.2", "eslint": "^7.32.0", + "eslint-plugin-no-jquery": "^2.7.0", "mocha": "^9.2.2", "sinon": "^10.0.0" }, diff --git a/player/custom-embed.coffee b/player/custom-embed.coffee index 8d7e6446..f03fcf44 100644 --- a/player/custom-embed.coffee +++ b/player/custom-embed.coffee @@ -21,7 +21,7 @@ window.CustomEmbedPlayer = class CustomEmbedPlayer extends EmbedPlayer .removeClass('col-md-12') $('