From cb7b1b1e25946fb95269aa49774e4ed2b3dfbc16 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sat, 16 Jan 2016 22:18:56 +0100 Subject: just return --- src/LightBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LightBox.js') 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(() => { -- cgit v1.2.3