From: timmywil Date: Sat, 26 Mar 2011 04:18:02 +0000 (-0400) Subject: Add name to prop hooks as well X-Git-Tag: 1.6b1~27^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=217a7abc43967cb860fc0dccee13b475de81b07d;p=jquery.git Add name to prop hooks as well --- diff --git a/src/attributes.js b/src/attributes.js index 6f6345747..70eeecfd5 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 {