-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch back to using Sizzle.matchesSelector.
- Loading branch information
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the unit tests, I'm getting:
core: selector state (2, 18, 20)
Died on test #19: jQuery.find.matchesSelector is not a function
Unfortunately, I'm on my way out now and dont have time to write and submit a patch. Sorry.
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to pull in the latest copy of Sizzle.
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok cool, I just pulled this down and ran 'make' ... Should the build process be updated to check for new sizzle (and qunit while we're at it)?
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It already does - running make runs make init - which pulls in the latest code from Sizzle and QUnit.
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, that's what I thought - but I pulled down all the latest commits from jquery master and then ran make, followed by opening the test suites and getting the failure. I will check through all my local files when I get home (sorry, I'm posting from mobile)
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rick, I use the Ant build and it definitely saw the change in Sizzle and rebuilt it.
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After I ran
make
, the Sizzle repo was reported as being up-to-date, but sizzle.js was in a modified state such that all of the new changes were removed (runninggit diff
showed basically a reverse diff of the latest Sizzle update). I had togit reset --hard HEAD
insrc/sizzle
to fix it. Dan Heberden also reported this problem and that this solution worked. Not sure if this is an artefact of making changes or if the Makefile is doing something wrong when pulling external dependencies or what.ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still getting errors and i definitely have an updated version. The errors had gone away but have returned.... this is a comment i left on the sizzle.js commit ( http://github.com/jeresig/sizzle/commit/b6d5e1761da834fd213ecfb92d5e4c7f278ac2dc ) :
This change wasn't updated in jquery/src/traversing.js
http://github.com/jquery/jquery/blob/master/src/traversing.js#L99
which causes massive unit test failures. I patched my local copy and the tests that were failing are passing, but now there are massive selector related failures across the modules: attributes.js(71, 72, 73), events.js(103,105,106,107,108,109,110,112,113,114) traversing.js(133,136,141,142, 154,156,157,158, 161,162) manipulation.js(199,200,203,204,294, 299,304,309,314,319,324,329,331,333,336,338,342,348)
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://github.com/jeresig/sizzle/commit/b6d5e1761da834fd213ecfb92d5e4c7f278ac2dc
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And to clarify for others: Make sure that you run 'make clean' before running 'make' - that seems to help these odd cases.
ba149e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. I thought I had deleted this comment, as well as the one on sizzle. Apparently, deleting comments doesn't actually do anything except for remove them from the DOM.