From: Marius Olbertz Date: Sun, 27 Mar 2016 11:23:38 +0000 (+0200) Subject: Fix issue with Reveal#destroy(). X-Git-Tag: v6.2.1~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d32deecae51cd812666173d74508fa220a21e40b;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix issue with Reveal#destroy(). Moved $element outside of $overlay to prevent error unregisterPlugin(). --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 5fb2f617e..3918e0fa0 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -440,6 +440,7 @@ class Reveal { */ destroy() { if (this.options.overlay) { + this.$element.appendTo($('body')); // move $element outside of $overlay to prevent error unregisterPlugin() this.$overlay.hide().off().remove(); } this.$element.hide().off();