X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fcore.js;h=edd108906c9721b6eced51eb9809d67e9e597ab5;hp=467895f7479b5ef296ec4e4bd0cf91a2cd81903a;hb=8e53f7b5d6716e60d8c8ea7e167f2b187aae9d89;hpb=b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e diff --git a/src/core.js b/src/core.js index 467895f..edd1089 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 );