From: Daniel Ruf Date: Mon, 12 Mar 2018 07:20:55 +0000 (+0100) Subject: fix: use right reference to the local context X-Git-Tag: v6.6.0~3^2~281^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74006f466;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: use right reference to the local context --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index fb5abe855..c8a42a9a8 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -412,7 +412,7 @@ class Reveal extends Plugin { var scrollTop = parseInt($("html").css("top")); if ($('.reveal:visible').length === 0) { - this.removeRevealOpenClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal + _this.removeRevealOpenClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal } Keyboard.releaseFocus(_this.$element); @@ -474,7 +474,7 @@ class Reveal extends Plugin { $(window).off(`.zf.reveal:${this.id}`); if ($('.reveal:visible').length === 0) { - this.removeRevealOpenClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal + _this.removeRevealOpenClasses(); // also remove .is-reveal-open from the html element when there is no opened reveal } }; }