]> source.dussan.org Git - jquery.git/commitdiff
Add name to prop hooks as well
authortimmywil <tim.willison@thisismedium.com>
Sat, 26 Mar 2011 04:18:02 +0000 (00:18 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sun, 3 Apr 2011 23:13:41 +0000 (19:13 -0400)
src/attributes.js

index 6f6345747dc1e3b97eccd4b31c7ee8750cc622dc..70eeecfd55bae5941615c27cb5109a3d3ae035a3 100644 (file)
@@ -392,7 +392,7 @@ jQuery.extend({
                hooks = jQuery.propHooks[ name ];
                
                if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value )) !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
                                return ret;
                        
                        } else {
@@ -400,7 +400,7 @@ jQuery.extend({
                        }
                
                } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem )) !== undefined ) {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== undefined ) {
                                return ret;
                                
                        } else {