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