diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-07-05 17:21:58 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-05 17:21:58 -0400 |
commit | cdd5132dcc02d4a3ff8df390677ffb8ff4b5a477 (patch) | |
tree | bc940409bbeff4c1279b4d2132801806e456b062 /src/attributes.js | |
parent | 1e027610d6000494558da753ce5601a05319408b (diff) | |
download | jquery-cdd5132dcc02d4a3ff8df390677ffb8ff4b5a477.tar.gz jquery-cdd5132dcc02d4a3ff8df390677ffb8ff4b5a477.zip |
Fix #12026. Let props in $(html, props) be any jQuery.fn method.
Closes gh-839.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/attributes.js b/src/attributes.js index 858002c0f..d7ad3156a 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -281,17 +281,6 @@ jQuery.extend({ } }, - attrFn: { - val: true, - css: true, - html: true, - text: true, - data: true, - width: true, - height: true, - offset: true - }, - attr: function( elem, name, value, pass ) { var ret, hooks, notxml, nType = elem.nodeType; @@ -301,7 +290,7 @@ jQuery.extend({ return; } - if ( pass && name in jQuery.attrFn ) { + if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) { return jQuery( elem )[ name ]( value ); } |