summaryrefslogtreecommitdiff
path: root/demo/LightBox.Core.js
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2016-01-16 22:59:26 +0100
committerVictor Häggqvist <[email protected]>2016-01-16 22:59:26 +0100
commit9d2f198f1da0fc04134e47b45b706136fd9f7e7f (patch)
tree24621b231ec803ae14091498f5ac9227f22146a0 /demo/LightBox.Core.js
parent2f76cfcf3c3aaaef8b09847951e8c42ef21e835c (diff)
build dist
Diffstat (limited to 'demo/LightBox.Core.js')
-rw-r--r--demo/LightBox.Core.js12
1 files changed, 3 insertions, 9 deletions
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;