diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LightBox.js | 4 |
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(() => { |