Skip to content
Permalink
Browse files

Add name to prop hooks as well

  • Loading branch information
timmywil
timmywil committed Mar 26, 2011
1 parent 11c97bb commit 217a7abc43967cb860fc0dccee13b475de81b07d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/attributes.js
@@ -392,15 +392,15 @@ 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 {
return (elem[ name ] = value);
}

} 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 {

0 comments on commit 217a7ab

Please sign in to comment.
You can’t perform that action at this time.