Skip to content

Commit

Permalink
types: hide and show functions accept CustomEvent
Browse files Browse the repository at this point in the history
instead of `Event`.
`_fire` private function also affected
  • Loading branch information
ZerdoX-x authored Mar 25, 2022
1 parent bc5cd77 commit eaba724
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 eaba724

Please sign in to comment.