]> source.dussan.org Git - jquery.git/commitdiff
Tweaking the formatting from the previous commit.
authorJohn Resig <jeresig@gmail.com>
Sun, 5 Sep 2010 03:28:17 +0000 (23:28 -0400)
committerJohn Resig <jeresig@gmail.com>
Sun, 5 Sep 2010 03:28:17 +0000 (23:28 -0400)
src/css.js

index 497303a81221e9c5d1b0d6ad7b238770dda2c4b2..6f26fd0c664e8536372ae1bb50d60f09f387607f 100644 (file)
@@ -93,13 +93,11 @@ jQuery.extend({
 
                var hooks = jQuery.cssHooks[name] || {};
 
-               if ( set ) {
-                       if ( !('set' in hooks) || hooks.set( elem, value ) === false ) {
-                               style[ name ] = value;
-                       }
+               if ( set && (!("set" in hooks) || hooks.set( elem, value ) === false) ) {
+                       style[ name ] = value;
                }
 
-               if ( 'get' in hooks ) {
+               if ( "get" in hooks ) {
                        var cssHookReturn = hooks.get( elem, false );
                        if ( cssHookReturn !== false ) {
                                return cssHookReturn;
@@ -134,7 +132,7 @@ jQuery.extend({
                        name = styleFloat;
                }
 
-               if ( 'get' in hooks && ( ret = hooks.get( elem, force ) ) !== false ) {
+               if ( "get" in hooks && ( ret = hooks.get( elem, force ) ) !== false ) {
                        return ret;
                }