git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b51cc9
)
Disable getting values using the .attr() function shortcut until the full implication...
author
jeresig
<jeresig@gmail.com>
Mon, 14 Dec 2009 06:15:02 +0000
(
01:15
-0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 14 Dec 2009 06:15:02 +0000
(
01:15
-0500)
src/attributes.js
patch
|
blob
|
history
diff --git
a/src/attributes.js
b/src/attributes.js
index
0a60b0d
..
0b6d21e
100644
(file)
--- a/
src/attributes.js
+++ b/
src/attributes.js
@@
-221,7
+221,7
@@
jQuery.extend({
return undefined;
}
- if ( name in jQuery.attrFn ) {
+ if ( name in jQuery.attrFn && value !== undefined ) {
return jQuery(elem)[name](value);
}