diff options
author | Lauri Eskola <lauriii@1078742.no-reply.drupal.org> | 2017-07-06 09:21:40 +0300 |
---|---|---|
committer | Lauri Eskola <lauriii@1078742.no-reply.drupal.org> | 2017-07-06 09:21:40 +0300 |
commit | 612c1fa68cfca2346c3d981383827278dca9a1ba (patch) | |
tree | edd4bbe83ca404e73a8dd2e7595edd006472193a /core/misc/autocomplete.js | |
parent | 062c2556f9e1fdb1ad3f139165c40614485f3100 (diff) | |
download | drupal-612c1fa68cfca2346c3d981383827278dca9a1ba.tar.gz drupal-612c1fa68cfca2346c3d981383827278dca9a1ba.zip |
Issue #2880007 by drpal, nod_, droplet: Auto-fix ESLint errors and warnings
Diffstat (limited to 'core/misc/autocomplete.js')
-rw-r--r-- | core/misc/autocomplete.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js index 5d1dd0618cd..aa3311d08d3 100644 --- a/core/misc/autocomplete.js +++ b/core/misc/autocomplete.js @@ -6,17 +6,14 @@ **/ (function ($, Drupal) { - - 'use strict'; - - var autocomplete; + var autocomplete = void 0; function autocompleteSplitValues(value) { var result = []; var quote = false; var current = ''; var valueLength = value.length; - var character; + var character = void 0; for (var i = 0; i < valueLength; i++) { character = value.charAt(i); @@ -118,7 +115,7 @@ if ($autocomplete.length) { var blacklist = $autocomplete.attr('data-autocomplete-first-character-blacklist'); $.extend(autocomplete.options, { - firstCharacterBlacklist: blacklist ? blacklist : '' + firstCharacterBlacklist: blacklist || '' }); $autocomplete.autocomplete(autocomplete.options).each(function () { |