]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: use right reference to the local context
authorDaniel Ruf <daniel.ruf@ueberbit.de>
Mon, 12 Mar 2018 07:20:55 +0000 (08:20 +0100)
committerDaniel Ruf <daniel.ruf@ueberbit.de>
Mon, 12 Mar 2018 07:20:55 +0000 (08:20 +0100)
js/foundation.reveal.js

index fb5abe855479dd38d1e29b2ec62c847e1bd3ed14..c8a42a9a80e1dc0bbfc92156ed1026e67da22973 100644 (file)
@@ -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
     }
   };
 }