Skip to content
Permalink
Browse files

Landing the new Sizzle selector engine. There'll need to be some late…

…r 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.
  • Loading branch information
jeresig committed Dec 20, 2008
1 parent 5c1725d commit c85243dfc4b09e6bb87532f2025f686b6ae45a22
Showing with 861 additions and 388 deletions.
  1. +4 −2 src/core.js
  2. +785 −350 src/selector.js
  3. +27 −14 test/unit/core.js
  4. +45 −22 test/unit/selector.js
@@ -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);

0 comments on commit c85243d

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