Made sure that css('width') and height returned string values, not numerical values. Fixes #5627.
This commit is contained in:
parent
6bec6199c2
commit
4e9fed3b16
2 changed files with 5 additions and 3 deletions
|
@ -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) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue