aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/showHide.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-09-03 02:52:01 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-09-07 20:14:50 +0300
commit20ddbe4f594f78f7f1095050aabd91882dde0670 (patch)
treecec646466acf1470780105c743e72d52f5c691ba /src/css/showHide.js
parentfa8a5a90e157f26a54ce50b4e8bb8f2f4bce3500 (diff)
downloadjquery-20ddbe4f594f78f7f1095050aabd91882dde0670.tar.gz
jquery-20ddbe4f594f78f7f1095050aabd91882dde0670.zip
Build: Update jscs and lint files
Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
Diffstat (limited to 'src/css/showHide.js')
-rw-r--r--src/css/showHide.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/css/showHide.js b/src/css/showHide.js
index f500f186f..efc1bdd3f 100644
--- a/src/css/showHide.js
+++ b/src/css/showHide.js
@@ -1,4 +1,4 @@
-define([], function() {
+define( [], function() {
function showHide( elements, show ) {
var display, elem,
@@ -16,6 +16,7 @@ function showHide( elements, show ) {
display = elem.style.display;
if ( show ) {
if ( display === "none" ) {
+
// Restore a pre-hide() value if we have one
values[ index ] = jQuery._data( elem, "display" ) || "";
}
@@ -42,4 +43,4 @@ function showHide( elements, show ) {
return showHide;
-});
+} );