Refactor image diff (#31444)

And remove some jQuery functions
This commit is contained in:
wxiaoguang 2024-06-22 12:52:09 +08:00 committed by GitHub
parent b3ed1e0e62
commit 1a811c0bd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 208 additions and 184 deletions

View file

@ -1,5 +1,6 @@
// Fork of the upstream module. The only changes are the addition of `const` on
// lines 93 and 161 to make it strict mode compatible.
// Fork of the upstream module. The only changes are:
// * use export to make it work with ES6 modules.
// * the addition of `const` to make it strict mode compatible.
/*!
* jQuery Plugin: Are-You-Sure (Dirty Form Detection)
@ -13,7 +14,7 @@
* Version: 1.9.0
* Date: 13th August 2014
*/
(function($) {
export function initAreYouSure($) {
$.fn.areYouSure = function(options) {
@ -192,4 +193,4 @@
initForm($form);
});
};
})(jQuery);
}