jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()
This commit is contained in:
parent
bf230ffb6a
commit
aadc268abf
|
@ -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, $(...))
|
||||
|
|
Loading…
Reference in a new issue