aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-03-26 00:18:02 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-03 19:13:41 -0400
commit217a7abc43967cb860fc0dccee13b475de81b07d (patch)
tree10a164853252813df100d0f98c92b97c56f4c890 /src/attributes.js
parent11c97bb06672a1203f39eb39ab373dcc56bd9465 (diff)
downloadjquery-217a7abc43967cb860fc0dccee13b475de81b07d.tar.gz
jquery-217a7abc43967cb860fc0dccee13b475de81b07d.zip
Add name to prop hooks as well
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js4
1 files changed, 2 insertions, 2 deletions
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 {