Skip to content

Commit

Permalink
jquery core: fixes 5187. getElementsByTagName optimization was breaki…
Browse files Browse the repository at this point in the history
…ng $('div').live()
  • Loading branch information
flesler committed Sep 9, 2009
1 parent bf230ff commit aadc268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, $(...))
Expand Down

0 comments on commit aadc268

Please sign in to comment.