Skip to content

Commit

Permalink
Fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed Jan 30, 2017
1 parent f30a538 commit 5082456
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions a11y-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Define the constructor to instantiate a dialog
*
*
* @constructor
* @param {Element} node
* @param {(NodeList | Element | string)} targets
Expand All @@ -35,7 +35,7 @@

/**
* Set up everything necessary for the dialog to be functioning
*
*
* @param {(NodeList | Element | string)} targets
* @return {this}
*/
Expand Down Expand Up @@ -64,16 +64,16 @@
}.bind(this));

// Execute all callbacks registered for the `create` event
this._fire('create', event);
this._fire('create');

return this;
}
};

/**
* Show the dialog element, disable all the targets (siblings), trap the
* current focus within it, listen for some specific key presses and fire all
* registered callbacks for `show` event
*
*
* @param {Event} event
* @return {this}
*/
Expand Down Expand Up @@ -201,7 +201,7 @@
*/
A11yDialog.prototype.on = function (type, handler) {
if (typeof this._listeners[type] === 'undefined') {
this._listeners[type] = [];
this._listeners[type] = [];
}

this._listeners[type].push(handler);
Expand Down Expand Up @@ -235,7 +235,7 @@
* @param {Event} event
*/
A11yDialog.prototype._fire = function (type, event) {
var listeners = this._listeners[type] || [];
var listeners = this._listeners[type] || [];
var trigger = event ? event.target : void 0;

listeners.forEach(function (listener) {
Expand Down Expand Up @@ -268,7 +268,7 @@
/**
* Private event handler used when making sure the focus stays within the
* currently open dialog
*
*
* @access private
* @param {Event} event
*/
Expand Down
2 changes: 1 addition & 1 deletion a11y-dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions example/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Define the constructor to instantiate a dialog
*
*
* @constructor
* @param {Element} node
* @param {(NodeList | Element | string)} targets
Expand All @@ -35,7 +35,7 @@

/**
* Set up everything necessary for the dialog to be functioning
*
*
* @param {(NodeList | Element | string)} targets
* @return {this}
*/
Expand Down Expand Up @@ -64,16 +64,16 @@
}.bind(this));

// Execute all callbacks registered for the `create` event
this._fire('create', event);
this._fire('create');

return this;
}
};

/**
* Show the dialog element, disable all the targets (siblings), trap the
* current focus within it, listen for some specific key presses and fire all
* registered callbacks for `show` event
*
*
* @param {Event} event
* @return {this}
*/
Expand Down Expand Up @@ -201,7 +201,7 @@
*/
A11yDialog.prototype.on = function (type, handler) {
if (typeof this._listeners[type] === 'undefined') {
this._listeners[type] = [];
this._listeners[type] = [];
}

this._listeners[type].push(handler);
Expand Down Expand Up @@ -235,7 +235,7 @@
* @param {Event} event
*/
A11yDialog.prototype._fire = function (type, event) {
var listeners = this._listeners[type] || [];
var listeners = this._listeners[type] || [];
var trigger = event ? event.target : void 0;

listeners.forEach(function (listener) {
Expand Down Expand Up @@ -268,7 +268,7 @@
/**
* Private event handler used when making sure the focus stays within the
* currently open dialog
*
*
* @access private
* @param {Event} event
*/
Expand Down

0 comments on commit 5082456

Please sign in to comment.