Another logic bug caught by furf in ad950c8c5992937640a1e1aca8d63bb476b001f6.
authorjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 20:29:26 +0000 (16:29 -0400)
committerjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 20:29:26 +0000 (16:29 -0400)
src/css.js

index 7a96020..dd0ca4e 100644 (file)
@@ -66,7 +66,7 @@ jQuery.extend({
                                value += "px";
                        }
 
-                       if ( !("set" in hooks) || (value = hooks.set( elem, value )) === undefined ) {
+                       if ( !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
                                style[ name ] = value;
                        }