Landing the new Sizzle selector engine. There'll need to be some later tweaks (to make the tests a little more pragmatic - especially for document order elements). But it appears to be passing well and that's enough. Closes #3563.

This commit is contained in:
John Resig 2008-12-20 01:19:17 +00:00
parent 5c1725d689
commit c85243dfc4
4 changed files with 899 additions and 426 deletions

View file

@ -333,7 +333,9 @@ jQuery.fn = jQuery.prototype = {
return selector.call( elem, i );
}) ||
jQuery.multiFilter( selector, this ), "filter", selector );
jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
return elem.nodeType === 1;
}) ), "filter", selector );
},
not: function( selector ) {
@ -1332,7 +1334,7 @@ jQuery.each({
},
remove: function( selector ) {
if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
// Prevent memory leaks
jQuery( "*", this ).add([this]).each(function(){
jQuery.event.remove(this);

File diff suppressed because it is too large Load diff