From 9d2f198f1da0fc04134e47b45b706136fd9f7e7f Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sat, 16 Jan 2016 22:59:26 +0100 Subject: build dist --- demo/LightBox.Core.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'demo/LightBox.Core.js') diff --git a/demo/LightBox.Core.js b/demo/LightBox.Core.js index e5b8e25..cd7898b 100644 --- a/demo/LightBox.Core.js +++ b/demo/LightBox.Core.js @@ -64,7 +64,7 @@ var LightBox = LightBox || {}; LightBox["Core"] = var log = __webpack_require__(3); - log.setDefaultLevel(log.levels.DEBUG); + //log.setDefaultLevel(log.levels.DEBUG); var LightBox = function () { function LightBox(targetSelector) { @@ -86,8 +86,7 @@ var LightBox = LightBox || {}; LightBox["Core"] = enableKeyboard: true, quitOnEnd: false, quitOnImgClick: false, - quitOnDocClick: true, - requestFullscreenOnMobile: true + quitOnDocClick: true }; this.options = Object.assign(options, defaultOptions); @@ -168,7 +167,7 @@ var LightBox = LightBox || {}; LightBox["Core"] = var _this2 = this; log.debug('quitLightbox'); - if (this.image === null) return false; + if (this.image === null) return; _CSSUtil.CSSUtil.setTransitionProperty(this.image, 'opacity ' + this.options.animationSpeed / 1000 + 's linear'); setTimeout(function () { @@ -194,11 +193,6 @@ var LightBox = LightBox || {}; LightBox["Core"] = event.preventDefault(); - //if (LightBox.HAS_TOUCH) { - // log.debug('requesting fullscreen'); - // document.body.webkitRequestFullscreen() - //} - if (this.inProgress) return; this.inProgress = false; -- cgit v1.2.3