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 (from parent 1:
b0cf713
)
Fixed bug that prevented $= from working on elements that didn't have the specified...
author
John Resig
<jeresig@gmail.com>
Wed, 4 Jul 2007 16:10:26 +0000
(16:10 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 4 Jul 2007 16:10:26 +0000
(16:10 +0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
83b27e9
..
5f6f87b
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-340,7
+340,7
@@
jQuery.extend({
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
if ( z == null || /href|src/.test(m[2]) )
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
if ( z == null || /href|src/.test(m[2]) )
- z = jQuery.attr(a,m[2]);
+ z = jQuery.attr(a,m[2]) || '';
if ( (type == "" && !!z ||
type == "=" && z == m[5] ||
if ( (type == "" && !!z ||
type == "=" && z == m[5] ||