git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If .attr() is run on no elements undefined should be returned (as should be the case...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
9fa311d
..
ba5d7f5
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-799,7
+799,7
@@
function access( elems, key, value, exec, fn, pass ) {
}
// Getting an attribute
- return length ? fn( elems[0], key ) : null;
+ return length ? fn( elems[0], key ) : undefined;
}
function now() {