From: Alexander Ebert <ebert@woltlab.com>
Date: Mon, 15 Aug 2016 08:03:20 +0000 (+0200)
Subject: Fixed JSDoc / option name
X-Git-Tag: 3.0.0_Beta_1~752
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4bf111567b125d516680091992126b305ee9832;p=GitHub%2FWoltLab%2FWCF.git

Fixed JSDoc / option name
---

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<mixed>}		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<mixed>}		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);
 				}