From ff919de97291837b934038af718499355ca4ab8f Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Fri, 14 Sep 2018 03:03:21 +0200 Subject: [PATCH] fix(): remove argument-less catch() --- core/package.json | 1 - core/src/components/popover/popover.tsx | 2 +- core/src/global/config.ts | 4 ++-- core/src/utils/gesture/listener.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/package.json b/core/package.json index b51344cc5b..401736da9c 100644 --- a/core/package.json +++ b/core/package.json @@ -75,7 +75,6 @@ "test": "stencil test --spec", "test.e2e": "stencil test --e2e", "test.screenshot": "stencil test --e2e --screenshot --compare", - "test.watch": "jest --watch --no-cache", "theme-app-build": "stencil build --dev --config scripts/theme-builder/stencil.config.js", "theme-builder": "sd concurrent \"npm run theme-app-build\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ", "theme-builder:dev": "sd concurrent \"npm run theme-app-build -- --watch\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ", diff --git a/core/src/components/popover/popover.tsx b/core/src/components/popover/popover.tsx index 15a14463e0..3938035fa2 100644 --- a/core/src/components/popover/popover.tsx +++ b/core/src/components/popover/popover.tsx @@ -3,7 +3,7 @@ import { Component, Element, Event, EventEmitter, Listen, Method, Prop } from '@ import { Animation, AnimationBuilder, ComponentProps, ComponentRef, Config, FrameworkDelegate, Mode, OverlayEventDetail, OverlayInterface } from '../../interface'; import { attachComponent, detachComponent } from '../../utils/framework-delegate'; import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays'; -import { createThemedClasses, getClassMap } from '../../utils/theme'; +import { getClassMap } from '../../utils/theme'; import { deepReady } from '../../utils/transition'; import { iosEnterAnimation } from './animations/ios.enter'; diff --git a/core/src/global/config.ts b/core/src/global/config.ts index 37b994351f..571aea96ca 100644 --- a/core/src/global/config.ts +++ b/core/src/global/config.ts @@ -41,7 +41,7 @@ export function configFromSession(): any { try { const configStr = window.sessionStorage.getItem(IONIC_SESSION_KEY); return configStr !== null ? JSON.parse(configStr) : {}; - } catch { + } catch (e) { return {}; } } @@ -49,7 +49,7 @@ export function configFromSession(): any { export function saveConfig(config: any) { try { window.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(config)); - } catch { + } catch (e) { return; } } diff --git a/core/src/utils/gesture/listener.ts b/core/src/utils/gesture/listener.ts index af42f9213b..986b03382e 100644 --- a/core/src/utils/gesture/listener.ts +++ b/core/src/utils/gesture/listener.ts @@ -10,7 +10,7 @@ function supportsPassive(node: Node) { } }); node.addEventListener('optsTest', () => { return; }, opts); - } catch { + } catch (e) { _sPassive = false; } }