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'); bodyEle.classList.add('enable-hover');
} }
let original = config.get('clickBlock'); if ( config.getBoolean('clickBlock', true) !== false ) {
let bool = config.getBoolean('clickBlock');
if ( bool !== false ) {
clickBlock.enable(); clickBlock.enable();
} }

View File

@ -10,18 +10,14 @@ Platform.register({
name: 'core', name: 'core',
settings: { settings: {
mode: 'md', mode: 'md',
keyboardHeight: 290, keyboardHeight: 290
clickBlock: true
} }
}); });
Platform.setDefault('core'); Platform.setDefault('core');
Platform.register({ Platform.register({
name: 'mobile', name: 'mobile'
settings: {
clickBlock: true
}
}); });