Tweaking the formatting from the previous commit.
This commit is contained in:
parent
65b24861bc
commit
1970154c3b
|
@ -93,13 +93,11 @@ jQuery.extend({
|
||||||
|
|
||||||
var hooks = jQuery.cssHooks[name] || {};
|
var hooks = jQuery.cssHooks[name] || {};
|
||||||
|
|
||||||
if ( set ) {
|
if ( set && (!("set" in hooks) || hooks.set( elem, value ) === false) ) {
|
||||||
if ( !('set' in hooks) || hooks.set( elem, value ) === false ) {
|
|
||||||
style[ name ] = value;
|
style[ name ] = value;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( 'get' in hooks ) {
|
if ( "get" in hooks ) {
|
||||||
var cssHookReturn = hooks.get( elem, false );
|
var cssHookReturn = hooks.get( elem, false );
|
||||||
if ( cssHookReturn !== false ) {
|
if ( cssHookReturn !== false ) {
|
||||||
return cssHookReturn;
|
return cssHookReturn;
|
||||||
|
@ -134,7 +132,7 @@ jQuery.extend({
|
||||||
name = styleFloat;
|
name = styleFloat;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'get' in hooks && ( ret = hooks.get( elem, force ) ) !== false ) {
|
if ( "get" in hooks && ( ret = hooks.get( elem, force ) ) !== false ) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue