From d32deecae51cd812666173d74508fa220a21e40b Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Sun, 27 Mar 2016 13:23:38 +0200 Subject: [PATCH] Fix issue with Reveal#destroy(). Moved $element outside of $overlay to prevent error unregisterPlugin(). --- js/foundation.reveal.js | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.47.2