]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge branch 'develop' into move-to-webpack
authorKevin Ball <kmball11@gmail.com>
Tue, 25 Apr 2017 21:19:03 +0000 (14:19 -0700)
committerKevin Ball <kmball11@gmail.com>
Tue, 25 Apr 2017 21:19:03 +0000 (14:19 -0700)
1  2 
js/foundation.abide.js
js/foundation.reveal.js

Simple merge
index 0f556edf0b298afa725fe89d3c26120552f105a6,178294e4323446e7c6ff75c6ca4cc9df9637c54e..60917381ad7dab0cd0279712dd43780e1cefc0a7
@@@ -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',
      });
    }
          '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