aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorge Kats <katsgeorgeek@gmail.com>2013-10-06 19:53:26 +0300
committerRichard Gibson <richard.gibson@gmail.com>2013-10-15 12:28:25 -0400
commit5ce4b06c285bd8cf52eaff0f39e0b9192a927873 (patch)
treef7c1189ccd2daeb4bd08a3ab8ec11776d26530fe /src
parentb24a3d5368ab1243ac43c773b318519da2f0ae7b (diff)
downloadjquery-5ce4b06c285bd8cf52eaff0f39e0b9192a927873.tar.gz
jquery-5ce4b06c285bd8cf52eaff0f39e0b9192a927873.zip
Fix #14432: Always return string from .css("z-index"). Close gh-1395.
Diffstat (limited to 'src')
-rw-r--r--src/css/curCSS.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index b648b8dca..c30519d3d 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -44,7 +44,9 @@ function curCSS( elem, name, computed ) {
}
}
- return ret;
+ // Support: IE
+ // IE returns zIndex value as an integer.
+ return ret === undefined ? ret : ret + "";
}
return curCSS;