aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-09 20:51:58 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-09 20:51:58 -0800
commit4e9fed3b16ed9612ed373d14a89294e98054f4dd (patch)
treec53571147674a626b72e40b15f010e85925d2899 /src/css.js
parent6bec6199c255b4fd3fa11b4682d97f2d0658ea4d (diff)
downloadjquery-4e9fed3b16ed9612ed373d14a89294e98054f4dd.tar.gz
jquery-4e9fed3b16ed9612ed373d14a89294e98054f4dd.zip
Made sure that css('width') and height returned string values, not numerical values. Fixes #5627.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index c36b6dcc2..7215fe620 100644
--- a/src/css.js
+++ b/src/css.js
@@ -18,8 +18,8 @@ var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
jQuery.fn.css = function( name, value ) {
return access( this, name, value, true, function( elem, name, value ) {
- if (value === undefined) {
- return jQuery.css( elem, name );
+ if ( value === undefined ) {
+ return jQuery.curCSS( elem, name );
}
if ( typeof value === "number" && !rexclude.test(name) ) {