Skip to content

Commit b6e8b64

Browse files
committed
Merge branch 'jquery-upgrade' of https://github.com/magento-lynx/magento2ce into MC-42057
2 parents 30f4117 + 6814f18 commit b6e8b64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/web/magnifier/magnify.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ define([
653653
});
654654
} else {
655655
$image.off('dblclick');
656-
$image.dblclick(dblClickHandler);
656+
$image.on('dblclick', dblClickHandler);
657657
}
658658

659659
if (gallery.fullScreen) {
@@ -810,7 +810,7 @@ define([
810810
/**
811811
* @todo keyboard navigation through Fotorama Api.
812812
*/
813-
$(document).keydown(keyboardNavigation);
813+
$(document).on('keydown', keyboardNavigation);
814814

815815
$(document).on(isTouchEnabled ? 'touchend' : 'mouseup pointerup MSPointerUp', function (e) {
816816
if (gallery.fullScreen) {
@@ -924,14 +924,14 @@ define([
924924
e.stopPropagation();
925925
});
926926

927-
$zoomIn.keyup(function (e) {
927+
$zoomIn.on('keyup', function (e) {
928928

929929
if (e.keyCode === 13) {
930930
zoomIn(e);
931931
}
932932
});
933933

934-
$(window).keyup(function (e) {
934+
$(window).on('keyup', function (e) {
935935

936936
if (e.keyCode === 107 || fotorama.fullscreen) {
937937
zoomIn(e);
@@ -947,14 +947,14 @@ define([
947947
e.stopPropagation();
948948
});
949949

950-
$zoomOut.keyup(function (e) {
950+
$zoomOut.on('keyup', function (e) {
951951

952952
if (e.keyCode === 13) {
953953
zoomOut(e);
954954
}
955955
});
956956

957-
$(window).keyup(function (e) {
957+
$(window).on('keyup', function (e) {
958958

959959
if (e.keyCode === 109 || fotorama.fullscreen) {
960960
zoomOut(e);

0 commit comments

Comments
 (0)