refactor(click-block): reversing previous change, making getBoolean use fallback of true

reversing previous change, making getBoolean use fallback of true
This commit is contained in:
Dan Bucholtz
2016-06-13 15:53:51 -05:00
parent d7cdba82db
commit b20647c16e
2 changed files with 3 additions and 9 deletions

View File

@ -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();
}

View File

@ -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'
});