summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2016-01-16 22:18:56 +0100
committerVictor Häggqvist <[email protected]>2016-01-16 22:18:56 +0100
commitcb7b1b1e25946fb95269aa49774e4ed2b3dfbc16 (patch)
tree13724cd24cb02d872c745ab7f462dfeb79e31133
parent14c0e1d6d7ee464673ff1be0592c1acf372184ad (diff)
just return
-rw-r--r--src/LightBox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LightBox.js b/src/LightBox.js
index 2b23d36..a3980a3 100644
--- a/src/LightBox.js
+++ b/src/LightBox.js
@@ -26,7 +26,7 @@ export default class LightBox {
enableKeyboard: true,
quitOnEnd: false,
quitOnImgClick: false,
- quitOnDocClick: true,
+ quitOnDocClick: true
};
this.options = Object.assign(options, defaultOptions);
@@ -99,7 +99,7 @@ export default class LightBox {
quitLightbox() {
log.debug('quitLightbox');
- if (this.image === null) return false;
+ if (this.image === null) return;
CSSUtil.setTransitionProperty(this.image, 'opacity '+this.options.animationSpeed/1000+'s linear');
setTimeout(() => {