From b20647c16eefb380876c1a1b04c87ac94e241f94 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 13 Jun 2016 15:53:51 -0500 Subject: [PATCH] refactor(click-block): reversing previous change, making getBoolean use fallback of true reversing previous change, making getBoolean use fallback of true --- src/config/bootstrap.ts | 4 +--- src/platform/registry.ts | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/config/bootstrap.ts b/src/config/bootstrap.ts index 07179dd7d4..4dc0fa8a1b 100644 --- a/src/config/bootstrap.ts +++ b/src/config/bootstrap.ts @@ -183,9 +183,7 @@ function setupDom(window: Window, document: Document, config: Config, platform: bodyEle.classList.add('enable-hover'); } - let original = config.get('clickBlock'); - let bool = config.getBoolean('clickBlock'); - if ( bool !== false ) { + if ( config.getBoolean('clickBlock', true) !== false ) { clickBlock.enable(); } diff --git a/src/platform/registry.ts b/src/platform/registry.ts index 16288208b2..83ead15af9 100644 --- a/src/platform/registry.ts +++ b/src/platform/registry.ts @@ -10,18 +10,14 @@ Platform.register({ name: 'core', settings: { mode: 'md', - keyboardHeight: 290, - clickBlock: true + keyboardHeight: 290 } }); Platform.setDefault('core'); Platform.register({ - name: 'mobile', - settings: { - clickBlock: true - } + name: 'mobile' });