Adding ternary condition for preventMouseDownDefault

This commit is contained in:
Francisco Hodge 2018-11-24 20:11:48 -05:00
parent 1aedf9c487
commit bc420bb60c

View File

@ -63,7 +63,7 @@ class SimpleKeyboard {
this.options.layoutName = this.options.layoutName || "default";
this.options.theme = this.options.theme || "hg-theme-default";
this.options.inputName = this.options.inputName || "default";
this.options.preventMouseDownDefault = this.options.preventMouseDownDefault || true;
this.options.preventMouseDownDefault = this.options.preventMouseDownDefault === false ? false : true;
/**
* @type {object} Classes identifying loaded plugins