Skip to content

Commit 8fa540d

Browse files
update jquery validate method from handle to dispatch and removal of jquery migrate
1 parent 336eac0 commit 8fa540d

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

app/code/Magento/Theme/view/base/requirejs-config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ var config = {
1414
}
1515
},
1616
shim: {
17-
'jquery/jquery-migrate': ['jquery'],
1817
'jquery/jstree/jquery.hotkeys': ['jquery'],
1918
'jquery/hover-intent': ['jquery'],
2019
'mage/adminhtml/backup': ['prototype'],
@@ -40,9 +39,6 @@ var config = {
4039
'tinycolor': 'jquery/spectrum/tinycolor',
4140
'jquery-ui-modules': 'jquery/ui-modules'
4241
},
43-
deps: [
44-
'jquery/jquery-migrate'
45-
],
4642
config: {
4743
mixins: {
4844
'jquery/jstree/jquery.jstree': {

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@
340340
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
341341
"components/jquery": [
342342
"lib/web/jquery.js",
343-
"lib/web/jquery/jquery.min.js",
344-
"lib/web/jquery/jquery-migrate.js"
343+
"lib/web/jquery/jquery.min.js"
345344
],
346345
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
347346
"components/jqueryui": [

lib/web/jquery/jquery.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,13 +1252,13 @@
12521252
var args = arguments;
12531253
args[0] = $.event.fix(e);
12541254
args[0].type = fix;
1255-
return $.event.handle.apply(this, args);
1255+
return $.event.dispatch.apply(this, args);
12561256
}
12571257
};
12581258
function handler(e) {
12591259
e = $.event.fix(e);
12601260
e.type = fix;
1261-
return $.event.handle.call(this, e);
1261+
return $.event.dispatch.call(this, e);
12621262
}
12631263
});
12641264
}

0 commit comments

Comments
 (0)