Skip to content
Permalink
Browse files

jquery core: fixes 5187. getElementsByTagName optimization was breaki…

…ng $('div').live()
  • Loading branch information
flesler committed Sep 9, 2009
1 parent bf230ff commit aadc268abf555f0f1cc7c5bc05d0dc73b35cb705
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core.js
@@ -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, $(...))

0 comments on commit aadc268

Please sign in to comment.
You can’t perform that action at this time.