From 0ff4c69929572e107624139851add5c9a5ec28c6 Mon Sep 17 00:00:00 2001 From: jeresig Date: Tue, 12 Apr 2011 00:38:48 -0400 Subject: [PATCH] Some minor code cleanup. --- src/css.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/css.js b/src/css.js index 40e59a85..8b0fda00 100644 --- a/src/css.js +++ b/src/css.js @@ -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