Some minor code cleanup.

1.7/enhancement_8685
jeresig 2011-04-12 00:38:48 -04:00
parent db80ad94d5
commit 0ff4c69929
1 changed files with 5 additions and 5 deletions

View File

@ -122,16 +122,16 @@ jQuery.extend({
},
css: function( elem, name, extra ) {
// Make sure that we're working with the right name
var ret,
hooks;
var ret, hooks;
// Make sure that we're working with the right name
name = jQuery.camelCase( name );
hooks = jQuery.cssHooks[ name ];
name = jQuery.cssProps[ name ] || name;
// cssFloat needs a special treatment
if ( name === 'cssFloat' ) {
name = 'float';
if ( name === "cssFloat" ) {
name = "float";
}
// If a hook was provided get the computed value from there