From: Alexander Ebert Date: Sun, 3 May 2015 19:00:46 +0000 (+0200) Subject: Changed var Foo = function() to function Foo(), added missing JSDoc X-Git-Tag: 3.0.0_Beta_1~2422 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0c09b4b7d40ea592785059ae045d144f43a040a;p=GitHub%2FWoltLab%2FWCF.git Changed var Foo = function() to function Foo(), added missing JSDoc --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js index 148d77571b..3b2aaf14bb 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js @@ -12,7 +12,7 @@ define(['Dictionary'], function(Dictionary) { /** * @constructor */ - var CallbackList = function() { + function CallbackList() { this._dictionary = new Dictionary(); }; CallbackList.prototype = { diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Core.js b/wcfsetup/install/files/js/WoltLab/WCF/Core.js index 6eb70df14f..892e822b2a 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Core.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Core.js @@ -12,7 +12,7 @@ define(['jQuery'], function($) { /** * @constructor */ - var Core = function() {}; + function Core() {}; Core.prototype = { /** * Initializes the core UI modifications and unblocks jQuery's ready event. diff --git a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js index 1eb7b5afe0..ff180ada0f 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js @@ -48,7 +48,7 @@ define(['DOM/Util'], function(DOMUtil) { /** * @constructor */ - var DOMTraverse = function() {}; + function DOMTraverse() {}; DOMTraverse.prototype = { /** * Examines parent nodes and returns the first parent that matches the given selector. diff --git a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js index ffa911b368..18d3a898ce 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js @@ -23,7 +23,7 @@ define(function() { /** * @constructor */ - var DOMUtil = function() {}; + function DOMUtil() {}; DOMUtil.prototype = { /** * Returns a unique element id. diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js index 477d740a1b..2c1d76439b 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js @@ -15,7 +15,7 @@ define(function() { /** * @constructor */ - var DateTimeRelative = function() {}; + function DateTimeRelative() {}; DateTimeRelative.prototype = { /** * Transforms