]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixes #7890, simple oversight
authorChris Oyler <chris@zurb.com>
Fri, 15 Jan 2016 18:01:01 +0000 (10:01 -0800)
committerChris Oyler <chris@zurb.com>
Fri, 15 Jan 2016 18:01:01 +0000 (10:01 -0800)
js/foundation.reveal.js

index 3d56592d37f505905da6d411395f0353493b523b..58bc374cd585a4b4f6ec4c1d4d5f112cebfd015e 100644 (file)
     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