From b8f0ad924ccc68eee18bef3dc69f41158846fb49 Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Fri, 15 Jan 2016 10:01:01 -0800 Subject: [PATCH] fixes #7890, simple oversight --- js/foundation.reveal.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 3d56592d3..58bc374cd 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -421,18 +421,14 @@ if(this.options.animationOut){ Foundation.Motion.animateOut(this.$element, this.options.animationOut, function(){ if(_this.options.overlay){ - Foundation.Motion.animateOut(_this.$overlay, 'fade-out', function(){ - finishUp(); - }); - } + Foundation.Motion.animateOut(_this.$overlay, 'fade-out', finishUp); + }else{ finishUp(); } }); }else{ this.$element.hide(_this.options.hideDelay, function(){ if(_this.options.overlay){ - _this.$overlay.hide(0, function(){ - finishUp(); - }); - } + _this.$overlay.hide(0, finishUp); + }else{ finishUp(); } }); } //conditionals to remove extra event listeners added on open -- 2.47.3