Skip to content

Commit 5082456

Browse files
committed
Fixed linting errors
1 parent f30a538 commit 5082456

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

a11y-dialog.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* Define the constructor to instantiate a dialog
13-
*
13+
*
1414
* @constructor
1515
* @param {Element} node
1616
* @param {(NodeList | Element | string)} targets
@@ -35,7 +35,7 @@
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
*/
@@ -64,16 +64,16 @@
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
*/
@@ -201,7 +201,7 @@
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);
@@ -235,7 +235,7 @@
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) {
@@ -268,7 +268,7 @@
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
*/

a11y-dialog.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* Define the constructor to instantiate a dialog
13-
*
13+
*
1414
* @constructor
1515
* @param {Element} node
1616
* @param {(NodeList | Element | string)} targets
@@ -35,7 +35,7 @@
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
*/
@@ -64,16 +64,16 @@
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
*/
@@ -201,7 +201,7 @@
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);
@@ -235,7 +235,7 @@
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) {
@@ -268,7 +268,7 @@
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
*/

0 commit comments

Comments
 (0)