From 74006f4660ed01afea4756d23e66396992e02a40 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Mon, 12 Mar 2018 08:20:55 +0100 Subject: [PATCH] fix: use right reference to the local context --- js/foundation.reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }; } -- 2.47.2