Commit aadc268a authored by Ariel Flesler's avatar Ariel Flesler

jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()

parent bf230ffb
......@@ -112,6 +112,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $("TAG")
} else if ( !context && /^\w+$/.test( selector ) ) {
this.selector = selector;
this.context = document;
selector = document.getElementsByTagName( selector );
// HANDLE: $(expr, $(...))
......
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