diff options
author | jeresig <jeresig@gmail.com> | 2010-01-12 21:54:06 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-12 21:54:06 -0500 |
commit | 8e53f7b5d6716e60d8c8ea7e167f2b187aae9d89 (patch) | |
tree | e70c4035fdbaf65f782f3a0654c02cbffe9e9f23 /src/core.js | |
parent | b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e (diff) | |
download | jquery-8e53f7b5d6716e60d8c8ea7e167f2b187aae9d89.tar.gz jquery-8e53f7b5d6716e60d8c8ea7e167f2b187aae9d89.zip |
Fixed typo in logic, also disabled function setters in this case to allow the functions to passthrough and bind.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 467895f74..edd108906 100644 --- a/src/core.js +++ b/src/core.js @@ -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 ); |