Fixed typo in logic, also disabled function setters in this case to allow the functions to passthrough and bind.
This commit is contained in:
parent
b5f077ae6a
commit
8e53f7b5d6
5 changed files with 12 additions and 6 deletions
|
@ -772,7 +772,7 @@ function access( elems, key, value, exec, fn, pass ) {
|
|||
// Setting one attribute
|
||||
if ( value !== undefined ) {
|
||||
// Optionally, function values get executed if exec is true
|
||||
exec = exec && jQuery.isFunction(value);
|
||||
exec = !pass && exec && jQuery.isFunction(value);
|
||||
|
||||
for ( var i = 0; i < length; i++ ) {
|
||||
fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
|
||||
|
|
|
@ -919,8 +919,8 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
|
|||
return fn ? this.bind( name, fn ) : this.trigger( name );
|
||||
};
|
||||
|
||||
if ( jQuery.fnAttr ) {
|
||||
jQuery.fnAttr[ name ] = true;
|
||||
if ( jQuery.attrFn ) {
|
||||
jQuery.attrFn[ name ] = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue