mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 01:44:58 -05:00
Fix #12026. Let props in $(html, props) be any jQuery.fn method.
Closes gh-839.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user