Skip to content
Permalink
Browse files
Fixed bug that prevented $= from working on elements that didn't have…
… the specified attribute.
  • Loading branch information
jeresig committed Jul 4, 2007
1 parent b0cf713 commit fa7bfcfd783421b561bccb5c9402e0993b4af769
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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]) )
z = jQuery.attr(a,m[2]);
z = jQuery.attr(a,m[2]) || '';

if ( (type == "" && !!z ||
type == "=" && z == m[5] ||

0 comments on commit fa7bfcf

Please sign in to comment.