feat(clickBlock): enable click block only on iOS

This commit is contained in:
Adam Bradley
2015-11-19 11:23:38 -06:00
parent ef3247ccfd
commit 00f9611e71
3 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,8 @@ import {ScrollTo} from '../../animations/scroll-to';
*/
export class IonicApp {
constructor(fastdom) {
constructor(config, fastdom) {
this._config = config;
this._fastdom = fastdom;
this._titleSrv = new Title();
this._title = '';
@ -47,7 +48,9 @@ export class IonicApp {
*/
setEnabled(isEnabled, fallback=700) {
this._disTime = (isEnabled ? 0 : Date.now() + fallback);
ClickBlock(!isEnabled, fallback + 100);
if (this._config.get('clickBlock')) {
ClickBlock(!isEnabled, fallback + 100);
}
}
/**