Skip to content

Commit

Permalink
Merge pull request #326 from ZerdoX-x/patch-1
Browse files Browse the repository at this point in the history
types: `hide` and `show` functions accept `CustomEvent`
  • Loading branch information
KittyGiraudel authored Mar 25, 2022
2 parents bc5cd77 + eaba724 commit ab894a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a11y-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A11yDialog.prototype.create = function () {
* current focus within it, listen for some specific key presses and fire all
* registered callbacks for `show` event
*
* @param {Event} event
* @param {CustomEvent} event
* @return {this}
*/
A11yDialog.prototype.show = function (event) {
Expand Down Expand Up @@ -108,7 +108,7 @@ A11yDialog.prototype.show = function (event) {
* focus to the previously active element, stop listening for some specific
* key presses and fire all registered callbacks for `hide` event
*
* @param {Event} event
* @param {CustomEvent} event
* @return {this}
*/
A11yDialog.prototype.hide = function (event) {
Expand Down Expand Up @@ -211,7 +211,7 @@ A11yDialog.prototype.off = function (type, handler) {
*
* @access private
* @param {string} type
* @param {Event} event
* @param {CustomEvent} event
*/
A11yDialog.prototype._fire = function (type, event) {
var listeners = this._listeners[type] || []
Expand Down

0 comments on commit ab894a1

Please sign in to comment.