From: Kevin Ball Date: Tue, 25 Apr 2017 21:19:03 +0000 (-0700) Subject: Merge branch 'develop' into move-to-webpack X-Git-Tag: v6.4.0-rc1~51^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdb868db2026a338bc56a9b77ca1d3f97293b92d;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Merge branch 'develop' into move-to-webpack --- fdb868db2026a338bc56a9b77ca1d3f97293b92d diff --cc js/foundation.reveal.js index 0f556edf0,178294e43..60917381a --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@@ -27,9 -24,8 +27,7 @@@ class Reveal extends Plugin this.options = $.extend({}, Reveal.defaults, this.$element.data(), options); this._init(); - Foundation.registerPlugin(this, 'Reveal'); - Foundation.Keyboard.register('Reveal', { + Keyboard.register('Reveal', { - 'ENTER': 'open', - 'SPACE': 'open', 'ESCAPE': 'close', }); } @@@ -288,8 -284,12 +286,12 @@@ 'tabindex': -1 }) .focus(); - Foundation.Keyboard.trapFocus(this.$element); + Keyboard.trapFocus(this.$element); + addRevealOpenClasses(); + + this._extraHandlers(); + /** * Fires when the modal has successfully opened. * @event Reveal#open