From 8038f9b269d6293947c44d646e37392540fd5b88 Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Wed, 31 May 2017 15:23:33 -0700 Subject: [PATCH] Add trigger dependency in reveal --- js/foundation.reveal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 83c6f4f75..afaca2658 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -5,6 +5,7 @@ import { Keyboard } from './foundation.util.keyboard'; import { MediaQuery } from './foundation.util.mediaQuery'; import { Motion } from './foundation.util.motion'; import { Plugin } from './foundation.plugin'; +import { Triggers } from './foundation.util.triggers'; /** * Reveal module. @@ -27,6 +28,9 @@ class Reveal extends Plugin { this.options = $.extend({}, Reveal.defaults, this.$element.data(), options); this._init(); + // Triggers init is idempotent, just need to make sure it is initialized + Triggers.init($); + Keyboard.register('Reveal', { 'ESCAPE': 'close', }); -- 2.47.2