jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()
This commit is contained in:
parent
bf230ffb6a
commit
aadc268abf
1 changed files with 1 additions and 0 deletions
|
@ -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