File tree Expand file tree Collapse file tree 3 files changed +17
-17
lines changed
Expand file tree Collapse file tree 3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1010
1111 /**
1212 * Define the constructor to instantiate a dialog
13- *
13+ *
1414 * @constructor
1515 * @param {Element } node
1616 * @param {(NodeList | Element | string) } targets
3535
3636 /**
3737 * Set up everything necessary for the dialog to be functioning
38- *
38+ *
3939 * @param {(NodeList | Element | string) } targets
4040 * @return {this }
4141 */
6464 } . bind ( this ) ) ;
6565
6666 // Execute all callbacks registered for the `create` event
67- this . _fire ( 'create' , event ) ;
67+ this . _fire ( 'create' ) ;
6868
6969 return this ;
70- }
70+ } ;
7171
7272 /**
7373 * Show the dialog element, disable all the targets (siblings), trap the
7474 * current focus within it, listen for some specific key presses and fire all
7575 * registered callbacks for `show` event
76- *
76+ *
7777 * @param {Event } event
7878 * @return {this }
7979 */
201201 */
202202 A11yDialog . prototype . on = function ( type , handler ) {
203203 if ( typeof this . _listeners [ type ] === 'undefined' ) {
204- this . _listeners [ type ] = [ ] ;
204+ this . _listeners [ type ] = [ ] ;
205205 }
206206
207207 this . _listeners [ type ] . push ( handler ) ;
235235 * @param {Event } event
236236 */
237237 A11yDialog . prototype . _fire = function ( type , event ) {
238- var listeners = this . _listeners [ type ] || [ ] ;
238+ var listeners = this . _listeners [ type ] || [ ] ;
239239 var trigger = event ? event . target : void 0 ;
240240
241241 listeners . forEach ( function ( listener ) {
268268 /**
269269 * Private event handler used when making sure the focus stays within the
270270 * currently open dialog
271- *
271+ *
272272 * @access private
273273 * @param {Event } event
274274 */
Original file line number Diff line number Diff line change 1010
1111 /**
1212 * Define the constructor to instantiate a dialog
13- *
13+ *
1414 * @constructor
1515 * @param {Element } node
1616 * @param {(NodeList | Element | string) } targets
3535
3636 /**
3737 * Set up everything necessary for the dialog to be functioning
38- *
38+ *
3939 * @param {(NodeList | Element | string) } targets
4040 * @return {this }
4141 */
6464 } . bind ( this ) ) ;
6565
6666 // Execute all callbacks registered for the `create` event
67- this . _fire ( 'create' , event ) ;
67+ this . _fire ( 'create' ) ;
6868
6969 return this ;
70- }
70+ } ;
7171
7272 /**
7373 * Show the dialog element, disable all the targets (siblings), trap the
7474 * current focus within it, listen for some specific key presses and fire all
7575 * registered callbacks for `show` event
76- *
76+ *
7777 * @param {Event } event
7878 * @return {this }
7979 */
201201 */
202202 A11yDialog . prototype . on = function ( type , handler ) {
203203 if ( typeof this . _listeners [ type ] === 'undefined' ) {
204- this . _listeners [ type ] = [ ] ;
204+ this . _listeners [ type ] = [ ] ;
205205 }
206206
207207 this . _listeners [ type ] . push ( handler ) ;
235235 * @param {Event } event
236236 */
237237 A11yDialog . prototype . _fire = function ( type , event ) {
238- var listeners = this . _listeners [ type ] || [ ] ;
238+ var listeners = this . _listeners [ type ] || [ ] ;
239239 var trigger = event ? event . target : void 0 ;
240240
241241 listeners . forEach ( function ( listener ) {
268268 /**
269269 * Private event handler used when making sure the focus stays within the
270270 * currently open dialog
271- *
271+ *
272272 * @access private
273273 * @param {Event } event
274274 */
You can’t perform that action at this time.
0 commit comments