Skip to content

Commit

Permalink
Declare val in .css(). Part of the fix for #6677.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Jul 12, 2010
1 parent ab89a1b commit 0a1a860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/css.js
Expand Up @@ -82,6 +82,7 @@ jQuery.extend({

css: function( elem, name, force, extra ) {
if ( name === "width" || name === "height" ) {
var val;
if ( elem.offsetWidth !== 0 ) {
val = getWH( elem, name, extra );

Expand Down

0 comments on commit 0a1a860

Please sign in to comment.