diff --git a/src/components/core/events/onTouchStart.js b/src/components/core/events/onTouchStart.js index 8e40fb41e..49e0a6ce0 100644 --- a/src/components/core/events/onTouchStart.js +++ b/src/components/core/events/onTouchStart.js @@ -26,7 +26,7 @@ export default function onTouchStart(event) { if (!data.isTouchEvent && 'button' in e && e.button > 0) return; if (data.isTouched && data.isMoved) return; - // change target el for shadow root componenet + // change target el for shadow root component const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== ''; if (swipingClassHasValue && e.target && e.target.shadowRoot && event.path && event.path[0]) { $targetEl = $(event.path[0]); diff --git a/src/components/hash-navigation/hash-navigation.js b/src/components/hash-navigation/hash-navigation.js index 19f3d5035..cc529bb58 100644 --- a/src/components/hash-navigation/hash-navigation.js +++ b/src/components/hash-navigation/hash-navigation.js @@ -3,7 +3,7 @@ import $ from '../../utils/dom'; import { bindModuleMethods } from '../../utils/utils'; const HashNavigation = { - onHashCange() { + onHashChange() { const swiper = this; const document = getDocument(); swiper.emit('hashChange'); @@ -63,14 +63,14 @@ const HashNavigation = { } } if (swiper.params.hashNavigation.watchState) { - $(window).on('hashchange', swiper.hashNavigation.onHashCange); + $(window).on('hashchange', swiper.hashNavigation.onHashChange); } }, destroy() { const swiper = this; const window = getWindow(); if (swiper.params.hashNavigation.watchState) { - $(window).off('hashchange', swiper.hashNavigation.onHashCange); + $(window).off('hashchange', swiper.hashNavigation.onHashChange); } }, };