From: Nicolas Coden Date: Mon, 5 Dec 2016 01:06:18 +0000 (+0100) Subject: Return Reveal overlay directly X-Git-Tag: v6.3.0-rc2~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9446%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Return Reveal overlay directly Return the Reveal overlay directly, without defining a variable in `_makeOverlay()`. Thanks to @ocularrhythm for the suggestion (https://github.com/zurb/foundation-sites/issues/8880). --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 5ee547694..79f3b670e 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -81,10 +81,9 @@ class Reveal { * @private */ _makeOverlay() { - var $overlay = $('
') - .addClass('reveal-overlay') - .appendTo(this.options.appendTo); - return $overlay; + return $('
') + .addClass('reveal-overlay') + .appendTo(this.options.appendTo); } /**