From e0d2121e0218d28abd30ba3a249faa34a931d0ba Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 25 Apr 2016 13:08:06 +0200 Subject: [PATCH] Fixed JSDoc --- wcfsetup/install/files/js/WoltLab/WCF/List.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/List.js b/wcfsetup/install/files/js/WoltLab/WCF/List.js index 040f64978f..15a93f8e8e 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/List.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/List.js @@ -2,7 +2,7 @@ * List implementation relying on an array or if supported on a Set to hold values. * * @author Alexander Ebert - * @copyright 2001-2015 WoltLab GmbH + * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @module WoltLab/WCF/List */ @@ -16,12 +16,12 @@ define([], function() { */ function List() { this._set = (_hasSet) ? new Set() : []; - }; + } List.prototype = { /** * Appends an element to the list, silently rejects adding an already existing value. * - * @param {*} value unique element + * @param {?} value unique element */ add: function(value) { if (_hasSet) { @@ -47,8 +47,8 @@ define([], function() { /** * Removes an element from the list, returns true if the element was in the list. * - * @param {*} value element - * @return {boolean} true if element was in the list + * @param {?} value element + * @return {boolean} true if element was in the list */ 'delete': function(value) { if (_hasSet) { @@ -82,8 +82,8 @@ define([], function() { /** * Returns true if the list contains the element. * - * @param {*} value element - * @return {boolean} true if element is in the list + * @param {?} value element + * @return {boolean} true if element is in the list */ has: function(value) { if (_hasSet) { @@ -99,7 +99,7 @@ define([], function() { enumerable: false, configurable: true, get: function() { - if (_hasMap) { + if (_hasSet) { return this._set.size; } else { -- 2.20.1