aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-09-04 23:28:17 -0400
committerJohn Resig <jeresig@gmail.com>2010-09-04 23:28:17 -0400
commit1970154c3b50d3cbc990b93b48d7448390bd84cf (patch)
treef2029a2dea1d539b809a4bd84af495306ac3219f /src/css.js
parent65b24861bc2e5f25b08373b2c5afdf15d3256e90 (diff)
downloadjquery-1970154c3b50d3cbc990b93b48d7448390bd84cf.tar.gz
jquery-1970154c3b50d3cbc990b93b48d7448390bd84cf.zip
Tweaking the formatting from the previous commit.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/css.js b/src/css.js
index 497303a81..6f26fd0c6 100644
--- a/src/css.js
+++ b/src/css.js
@@ -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;
}