diff --git a/src/client/ui/ios.js b/src/client/ui/ios.js index 52cc128e..bc04c34c 100644 --- a/src/client/ui/ios.js +++ b/src/client/ui/ios.js @@ -4,9 +4,9 @@ var iOS if (navigator.platform.match(/iPhone|iPod|iPad/)) { - var supportsPassiveOption = false; + var supportsPassiveOption = false try { - document.createElement("div").addEventListener("test", function() {}, { + document.createElement('div').addEventListener('test', function() {}, { get passive() { supportsPassiveOption = true return false diff --git a/src/client/ui/ui-modal.js b/src/client/ui/ui-modal.js index e5d4fbf3..67a2f62f 100644 --- a/src/client/ui/ui-modal.js +++ b/src/client/ui/ui-modal.js @@ -7,24 +7,24 @@ var UiWidget = require('./ui-widget'), class UiModal extends UiWidget { - constructor(options) { + constructor(options) { - super(options) + super(options) - if (!MODAL_CONTAINER) MODAL_CONTAINER = DOM.get('osc-modal-container')[0] + if (!MODAL_CONTAINER) MODAL_CONTAINER = DOM.get('osc-modal-container')[0] - if (options.closable) { + if (options.closable) { - if (MODAL_SINGLETON) MODAL_SINGLETON.close() - MODAL_SINGLETON = this + if (MODAL_SINGLETON) MODAL_SINGLETON.close() + MODAL_SINGLETON = this - } + } - this.escKey = options.closable || options.escKey - this.enterKey = options.enterKey - this.state = 0 + this.escKey = options.closable || options.escKey + this.enterKey = options.enterKey + this.state = 0 - this.container = html` + this.container = html`