Commit fa7bfcfd authored by John Resig's avatar John Resig

Fixed bug that prevented $= from working on elements that didn't have the specified attribute.

parent b0cf7133
...@@ -340,7 +340,7 @@ jQuery.extend({ ...@@ -340,7 +340,7 @@ jQuery.extend({
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ]; var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
if ( z == null || /href|src/.test(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 || if ( (type == "" && !!z ||
type == "=" && z == m[5] || type == "=" && z == m[5] ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment