Restrict the attr quick setters to only methods that specifically ask for the functionality. Fixes #5612.
This commit is contained in:
parent
1a4d1904ae
commit
f25eedf32a
2 changed files with 20 additions and 1 deletions
|
@ -885,6 +885,10 @@ jQuery.each( ("blur focus load resize scroll unload click dblclick " +
|
|||
jQuery.fn[ name ] = function( fn ) {
|
||||
return fn ? this.bind( name, fn ) : this.trigger( name );
|
||||
};
|
||||
|
||||
if ( jQuery.fnAttr ) {
|
||||
jQuery.fnAttr[ name ] = true;
|
||||
}
|
||||
});
|
||||
|
||||
// Prevent memory leaks in IE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue