From: Alexander Ebert Date: Mon, 16 Nov 2015 23:51:42 +0000 (+0100) Subject: Minor improvements X-Git-Tag: 3.0.0_Beta_1~2030^2~251 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4139f9707fb4400040b4e7f963c12448d672599e;p=GitHub%2FWoltLab%2FWCF.git Minor improvements --- diff --git a/wcfsetup/install/files/js/wcf.globalHelper.js b/wcfsetup/install/files/js/wcf.globalHelper.js index c3d79feb8c..a8db731b62 100644 --- a/wcfsetup/install/files/js/wcf.globalHelper.js +++ b/wcfsetup/install/files/js/wcf.globalHelper.js @@ -11,7 +11,7 @@ * * @param {Element} element target element * @param {string} attribute attribute name - * @param {mixed=} value attribute value, omit if attribute should be read + * @param {?=} value attribute value, omit if attribute should be read * @return {(string|undefined)} attribute value, empty string if attribute is not set or undefined if `value` was omitted */ window.elAttr = function(element, attribute, value) { @@ -104,7 +104,7 @@ * * @param {Element} element target element * @param {string} attribute attribute name - * @param {mixed=} value attribute value, omit if attribute should be read + * @param {?=} value attribute value, omit if attribute should be read * @return {(string|undefined)} attribute value, empty string if attribute is not set or undefined if `value` was omitted */ window.elData = function(element, attribute, value) { @@ -136,7 +136,7 @@ * @param {Element} element DOM element */ window.elHide = function(element) { - element.style.setProperty('display', 'none'); + element.style.setProperty('display', 'none', ''); }; /**