Commit 0c50be4f authored by xjm's avatar xjm

Issue #2487261 by nod_, alanburke: Eslint config update for function spacing style

parent b03932be
......@@ -33,8 +33,9 @@
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"one-var": [2, "never"],
"semi": [2, "always"],
"space-after-keywords": [2, "always", {"checkFunctionKeyword": true}],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-brackets": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-line-comment": [2, "always"],
......
......@@ -37,7 +37,7 @@
var originalClose = settings.dialog.close;
// Overwrite the close method to remove the dialog on closing.
settings.dialog.close = function(event) {
settings.dialog.close = function (event) {
originalClose.apply(settings.dialog, arguments);
$(event.target).remove();
};
......
......@@ -23,7 +23,7 @@
*/
Drupal.behaviors.tour = {
attach: function (context) {
$('body').once('tour').each(function() {
$('body').once('tour').each(function () {
var model = new Drupal.tour.models.StateModel();
new Drupal.tour.views.ToggleTourView({
el: $(context).find('#toolbar-tab-tour'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment