From 59f282110869c734a3cbbd86ec7291feafb04f85 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Mon, 5 Dec 2016 02:06:18 +0100 Subject: [PATCH] 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). --- js/foundation.reveal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } /** -- 2.47.2