JSDoc {integer} -> {int} (#2050)
authorFabii547 <Fabii547@users.noreply.github.com>
Mon, 20 Jun 2016 15:59:20 +0000 (17:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 20 Jun 2016 15:59:20 +0000 (17:59 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Bbcode/ToHtml.js
wcfsetup/install/files/js/WoltLab/WCF/Controller/User/Notification/Settings.js
wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js
wcfsetup/install/files/js/WoltLab/WCF/Dom/Util.js
wcfsetup/install/files/js/WoltLab/WCF/Language/Input.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/User/List.js
wcfsetup/install/files/js/WoltLab/WCF/Upload.js

index 0327a857902e324b5083746caf5c31b25192b754..9dd173b57cc28a8d913a92b4d20ad5d1bcb395a8 100644 (file)
@@ -162,7 +162,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}          stack           linear list of BBCode tags and regular strings
                 * @param       {object}                item            current BBCode tag object
-                * @param       {integer}               index           current stack index representing `item`
+                * @param       {int}                   index           current stack index representing `item`
                 * @return      {(string|array)}        string if only the current item should be replaced or an array with
                 *                                      the first item used for the opening tag and the second item for the closing tag
                 */
@@ -218,7 +218,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertAlignment: function(stack, item, index) {
@@ -235,7 +235,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertAttachment: function(stack, item, index) {
@@ -287,7 +287,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertCode: function(stack, item, index) {
@@ -378,7 +378,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertColor: function(stack, item, index) {
@@ -394,7 +394,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertEmail: function(stack, item, index) {
@@ -430,7 +430,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertImage: function(stack, item, index) {
@@ -484,7 +484,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertList: function(stack, item, index) {
@@ -513,7 +513,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertQuote: function(stack, item, index) {
@@ -590,7 +590,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertSize: function(stack, item, index) {
@@ -606,7 +606,7 @@ define(['Core', 'EventHandler', 'Language', 'StringUtil', 'WoltLab/WCF/Bbcode/Pa
                 * 
                 * @param       {array<mixed>}  stack   linear list of BBCode tags and regular strings
                 * @param       {object}        item    current BBCode tag object
-                * @param       {integer}       index   current stack index representing `item`
+                * @param       {int}           index   current stack index representing `item`
                 * @returns     {array}         first item represents the opening tag, the second the closing one
                 */
                _convertUrl: function(stack, item, index) {
index 939af2398c881e054270caa290997b41e097edb9..cffc11928513d01c3d5ab9adf04c3bc88fccbf6c 100644 (file)
@@ -96,7 +96,7 @@ define(['Dictionary', 'Language', 'Dom/Traverse', 'Ui/SimpleDropdown'], function
                /**
                 * Creates the email type dropdown.
                 * 
-                * @param       {integer}       objectId        notification event id
+                * @param       {int}           objectId        notification event id
                 * @param       {string}        initialValue    initial email type
                 * @returns     {Element}       dropdown menu object
                 */
index 1ea02e8a060ef47869d251552000636343ca0a0d..b2078f900478b40cc6e04775d2435a89f81dc00d 100644 (file)
@@ -194,8 +194,8 @@ define(['Language'], function(Language) {
                /**
                 * Returns UTC timestamp, if date is not given, current time will be used.
                 * 
-                * @param       Date            date    target date
-                * @return      integer         UTC timestamp in seconds
+                * @param       {Date}          date    target date
+                * @return      {int}           UTC timestamp in seconds
                 */
                gmdate: function(data) {
                        if (!(date instanceof Date)) {
@@ -215,9 +215,9 @@ define(['Language'], function(Language) {
                /**
                 * Returns a Date object with precise offset (including timezone and local timezone).
                 * 
-                * @param       integer         timestamp       timestamp in miliseconds
-                * @param       integer         offset          timezone offset in miliseconds
-                * @return      Date            localized date
+                * @param       {int}           timestamp       timestamp in miliseconds
+                * @param       {int}           offset          timezone offset in miliseconds
+                * @return      {Date}          localized date
                 */
                getTimezoneDate: function(timestamp, offset) {
                        var date = new Date(timestamp);
index 9cd587f56ad143a9e2ce5d0dfef83e311881796c..abf35699ebd1bf6c6c2e7684a8e0aadfd1eeb48e 100644 (file)
@@ -118,7 +118,7 @@ define(['Environment', 'StringUtil'], function(Environment, StringUtil) {
                 * 
                 * @param       {Element}               el              element
                 * @param       {CSSStyleDeclaration=}  styles          result of window.getComputedStyle()
-                * @return      {integer}       outer width in px
+                * @return      {int}   outer width in px
                 */
                outerWidth: function(el, styles) {
                        styles = styles || window.getComputedStyle(el);
index 1055fcad4f98ab454dd76c81a4037cb30fcb9ee3..c60f3ffccdff3df811fc0512fb8020015ef95c59 100644 (file)
@@ -25,8 +25,8 @@ define(['Core', 'Dictionary', 'Language', 'ObjectMap', 'StringUtil', 'Dom/Traver
                 * Initializes an input field.
                 * 
                 * @param       {string}                        elementId               input element id
-                * @param       {object<integer, string>}       values                  preset values per language id
-                * @param       {object<integer, string>}       availableLanguages      language names per language id
+                * @param       {object<int, string>}           values                  preset values per language id
+                * @param       {object<int, string>}           availableLanguages      language names per language id
                 * @param       {boolean}                       forceSelection          require i18n input
                 */
                init: function(elementId, values, availableLanguages, forceSelection) {
@@ -71,7 +71,7 @@ define(['Core', 'Dictionary', 'Language', 'ObjectMap', 'StringUtil', 'Dom/Traver
                 * @param       {string}                        elementId               input element id
                 * @param       {Element}                       element                 input or textarea element
                 * @param       {Dictionary}                    values                  preset values per language id
-                * @param       {object<integer, string>}       availableLanguages      language names per language id
+                * @param       {object<int, string>}           availableLanguages      language names per language id
                 * @param       {boolean}                       forceSelection          require i18n input
                 */
                _initElement: function(elementId, element, values, availableLanguages, forceSelection) {
@@ -183,7 +183,7 @@ define(['Core', 'Dictionary', 'Language', 'ObjectMap', 'StringUtil', 'Dom/Traver
                 * Selects a language or non-i18n from the dropdown list.
                 * 
                 * @param       {string}        elementId       input element id
-                * @param       {integer}       languageId      language id or `0` to disable i18n
+                * @param       {int}           languageId      language id or `0` to disable i18n
                 * @param       {boolean}       isInit          triggers pre-selection on init
                 */
                _select: function(elementId, languageId, isInit) {
index 5b3a03230bcff503d4a30f335b246f47991908ac..927bb280b179b163b288f4ae2632a8de7766b039 100644 (file)
@@ -16,7 +16,7 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump
        UiPagination.prototype = {
                /**
                 * maximum number of displayed page links, should match the PHP implementation
-                * @var {integer}
+                * @var {int}
                 */
                SHOW_LINKS: 11,
                
@@ -185,7 +185,7 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump
                /**
                 * Creates a link to a specific page.
                 * 
-                * @param       {integer}       pageNo          page number
+                * @param       {int}           pageNo          page number
                 * @return      {Element}       link element
                 */
                _createLink: function(pageNo) {
@@ -207,7 +207,7 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump
                /**
                 * Switches to given page number.
                 * 
-                * @param       {integer}       pageNo          page number
+                * @param       {int}           pageNo          page number
                 * @param       {object}        event           event object
                 */
                switchPage: function(pageNo, event) {
index 10f7c49d130a1866b017c6007c31992966aff027..a36316579d66615c5c4e1c2604f792a8281354ec 100644 (file)
@@ -42,7 +42,7 @@ define(['Ajax', 'Core', 'Dictionary', 'Dom/Util', 'Ui/Dialog', 'WoltLab/WCF/Ui/P
                /**
                 * Shows the current or given page.
                 * 
-                * @param       {integer=}      pageNo          page number
+                * @param       {int=}          pageNo          page number
                 */
                _showPage: function(pageNo) {
                        if (typeof pageNo === 'number') {
index a7bc7f36b675638a7ca508f405dd770eee8f7d33..cbbf507299744878aca8eb733b60d73cd177414c 100644 (file)
@@ -141,7 +141,7 @@ define(['AjaxRequest', 'Core', 'Dom/ChangeListener', 'Language', 'Dom/Util', 'Do
                /**
                 * Handles a failed file upload.
                 * 
-                * @param       {integer}               uploadId        identifier of a file upload
+                * @param       {int}                   uploadId        identifier of a file upload
                 * @param       {object<string, *>}     data            response data
                 * @param       {string}                responseText    response
                 * @param       {XMLHttpRequest}        xhr             request object
@@ -172,7 +172,7 @@ define(['AjaxRequest', 'Core', 'Dom/ChangeListener', 'Language', 'Dom/Util', 'Do
                /**
                 * Updates the progress of an upload.
                 * 
-                * @param       {integer}                       uploadId        internal upload identifier
+                * @param       {int}                           uploadId        internal upload identifier
                 * @param       {XMLHttpRequestProgressEvent}   event           progress event object
                 */
                _progress: function(uploadId, event) {
@@ -198,7 +198,7 @@ define(['AjaxRequest', 'Core', 'Dom/ChangeListener', 'Language', 'Dom/Util', 'Do
                /**
                 * Handles a successful file upload.
                 * 
-                * @param       {integer}               uploadId        identifier of a file upload
+                * @param       {int}                   uploadId        identifier of a file upload
                 * @param       {object<string, *>}     data            response data
                 * @param       {string}                responseText    response
                 * @param       {XMLHttpRequest}        xhr             request object
@@ -214,7 +214,7 @@ define(['AjaxRequest', 'Core', 'Dom/ChangeListener', 'Language', 'Dom/Util', 'Do
                 * @param       {Event}         event           input change event object
                 * @param       {File}          file            uploaded file
                 * @param       {Blob}          blob            file blob
-                * @return      {(integer|Array.<integer>|null)}        identifier(s) for the uploaded files
+                * @return      {(int|Array.<int>|null)}        identifier(s) for the uploaded files
                 */
                _upload: function(event, file, blob) {
                        // remove failed upload elements first
@@ -278,7 +278,7 @@ define(['AjaxRequest', 'Core', 'Dom/ChangeListener', 'Language', 'Dom/Util', 'Do
                 * 
                 * @param       {(FileList|Array.<File>)}       files           uploaded files
                 * @param       {Blob}                          blob            file blob
-                * @return      {(integer|null)}        identifier for the uploaded files
+                * @return      {(int|null)}    identifier for the uploaded files
                 */
                _uploadFiles: function(files, blob) {
                        var uploadId = this._createFileElements(files);