From a981f84425854a9f21975fb8dbcd63004baf750d Mon Sep 17 00:00:00 2001 From: lubber-de Date: Wed, 6 Sep 2023 17:00:44 +0200 Subject: [PATCH] fix(sidebar,flyout): remove unused ios checks --- src/definitions/modules/flyout.js | 31 ------------------------------ src/definitions/modules/sidebar.js | 30 ----------------------------- 2 files changed, 61 deletions(-) diff --git a/src/definitions/modules/flyout.js b/src/definitions/modules/flyout.js index d3a99bb118..c7214bfda1 100644 --- a/src/definitions/modules/flyout.js +++ b/src/definitions/modules/flyout.js @@ -233,9 +233,6 @@ .off(eventNamespace) .removeData(moduleNamespace) ; - if (module.is.ios()) { - module.remove.ios(); - } $closeIcon.off(elementNamespace); if ($inputs) { $inputs.off(elementNamespace); @@ -890,12 +887,6 @@ }); }, - // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios - // (This is no longer necessary in latest iOS) - ios: function () { - $html.addClass(className.ios); - }, - // container pushed: function () { $context.addClass(className.pushed); @@ -945,11 +936,6 @@ ; }, - // ios scroll on html not document - ios: function () { - $html.removeClass(className.ios); - }, - // context pushed: function () { $context.removeClass(className.pushed); @@ -1071,20 +1057,6 @@ return module.cache.isIE; }, - ios: function () { - var - userAgent = navigator.userAgent, - isIOS = userAgent.match(regExp.ios), - isMobileChrome = userAgent.match(regExp.mobileChrome) - ; - if (isIOS && !isMobileChrome) { - module.verbose('Browser was found to be iOS', userAgent); - - return true; - } - - return false; - }, mobile: function () { var userAgent = navigator.userAgent, @@ -1431,7 +1403,6 @@ blurring: 'blurring', closing: 'closing', dimmed: 'dimmed', - ios: 'ios', locked: 'locked', pushable: 'pushable', pushed: 'pushed', @@ -1464,8 +1435,6 @@ }, regExp: { - ios: /(iPad|iPhone|iPod)/g, - mobileChrome: /(CriOS)/g, mobile: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g, }, diff --git a/src/definitions/modules/sidebar.js b/src/definitions/modules/sidebar.js index 7ce9b07bed..dd74a08e93 100644 --- a/src/definitions/modules/sidebar.js +++ b/src/definitions/modules/sidebar.js @@ -129,9 +129,6 @@ .off(eventNamespace) .removeData(moduleNamespace) ; - if (module.is.ios()) { - module.remove.ios(); - } // bound by uuid $context.off(elementNamespace); $window.off(elementNamespace); @@ -595,11 +592,6 @@ $pusher.removeClass(className.blurring); } }, - // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios - // (This is no longer necessary in latest iOS) - ios: function () { - $html.addClass(className.ios); - }, // container pushed: function () { @@ -648,11 +640,6 @@ } }, - // ios scroll on html not document - ios: function () { - $html.removeClass(className.ios); - }, - // context pushed: function () { $context.removeClass(className.pushed); @@ -772,20 +759,6 @@ return module.cache.isIE; }, - ios: function () { - var - userAgent = navigator.userAgent, - isIOS = userAgent.match(regExp.ios), - isMobileChrome = userAgent.match(regExp.mobileChrome) - ; - if (isIOS && !isMobileChrome) { - module.verbose('Browser was found to be iOS', userAgent); - - return true; - } - - return false; - }, mobile: function () { var userAgent = navigator.userAgent, @@ -1045,7 +1018,6 @@ blurring: 'blurring', closing: 'closing', dimmed: 'dimmed', - ios: 'ios', locked: 'locked', pushable: 'pushable', pushed: 'pushed', @@ -1065,8 +1037,6 @@ }, regExp: { - ios: /(iPad|iPhone|iPod)/g, - mobileChrome: /(CriOS)/g, mobile: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g, },