From e4bf111567b125d516680091992126b305ee9832 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 15 Aug 2016 10:03:20 +0200 Subject: [PATCH] Fixed JSDoc / option name --- .../files/js/WoltLabSuite/Core/Ui/Suggestion.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js index 5cfeb40648..9fa33d269a 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js @@ -12,15 +12,15 @@ define(['Ajax', 'Core', 'Ui/SimpleDropdown'], function(Ajax, Core, UiSimpleDropd /** * @constructor * @param {string} elementId input element id - * @param {object} options option list + * @param {Object} options option list */ function UiSuggestion(elementId, options) { this.init(elementId, options); } UiSuggestion.prototype = { /** * Initializes a new suggestion input. * - * @param {string} element id input element id - * @param {object} options option list + * @param {string} elementId input element id + * @param {Object} options option list */ init: function(elementId, options) { this._dropdownMenu = null; @@ -46,7 +46,7 @@ define(['Ajax', 'Core', 'Ui/SimpleDropdown'], function(Ajax, Core, UiSimpleDropd // list of excluded search values excludedSearchValues: [], // minimum number of characters required to trigger a search request - treshold: 3 + threshold: 3 }, options); if (typeof this._options.callbackSelect !== 'function') { @@ -172,7 +172,7 @@ define(['Ajax', 'Core', 'Ui/SimpleDropdown'], function(Ajax, Core, UiSimpleDropd if (this._value === value) { return; } - else if (value.length < this._options.treshold) { + else if (value.length < this._options.threshold) { if (this._dropdownMenu !== null) { UiSimpleDropdown.close(this._element.id); } -- 2.20.1