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:
parent
5c1725d689
commit
c85243dfc4
4 changed files with 899 additions and 426 deletions
|
@ -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);
|
||||
|
|
1211
src/selector.js
1211
src/selector.js
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue