]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add trigger dependency in reveal
authorKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 22:23:33 +0000 (15:23 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 22:23:33 +0000 (15:23 -0700)
js/foundation.reveal.js

index 83c6f4f75337b8980bbf9bd1d926ee3bb9e43b20..afaca2658a1c420d580c07c8352f9d919d45d64f 100644 (file)
@@ -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',
     });