aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Further reduce historical cruft. Removes the untested and unnec. jQuery.nth()Rick Waldron2012-05-071-14/+13
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Remove unnecessary arguments from .nth(). Fixes #11720Sindre Sorhus2012-05-071-5/+4
| | | | Also use postfix increment to make it a little clearer.
* Fix #11543: .has should work on detached elements.Richard Gibson2012-04-051-1/+1
|
* Fix #11370: .siblings() shouldn't throw exception on a detached elementRichard Gibson2012-02-231-1/+1
|
* Use Sizzle.Expr.match.globalPOS for identifying POS selectors in traversing. ↵timmywil2011-12-121-1/+1
| | | | Fixes #10970.
* Fix #10692. JSLint is dead! Long live JSHint!Mike Sherov2011-12-081-3/+3
| | | | Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
* Chrome 10 slice bug has been fixed; remove workaround.Berker Peksag2011-11-061-7/+2
| | | | | See: http://code.google.com/p/v8/issues/detail?id=1050 Discussion: jquery/jquery@52a0238.
* Cleanup spacing in traversing.js. Fixes #10601Rick Waldron2011-10-271-2/+2
|
* Simplify the `.closest(Array)` code since we no longer use it internally.Dave Methvin2011-09-231-24/+9
| | | | | | It was previously used in liveHandler for delegated events, but is now baked in to events.js. The signature is a strange one since it returns an array of matches, *not* a chainable jQuery object. I've marked it as deprecated. The code is simplified by two things: 1) We don't care about optimizing the duplicate selectors case, and 2) `.is()` now handles positional selectors by looking for set membership, which eliminates the workaround that was being applied here. See https://github.com/jquery/jquery/commit/70e2e32e0eb03607ad0c8b7752dbd7747da47164 for that commit.
* Landing pull request 491. Fix #7322. Make `.is()` with a positional selector ↵Dave Methvin2011-09-191-3/+8
| | | | | | | | work like delegated event logic. Fixes #7322. More Details: - https://github.com/jquery/jquery/pull/491 - http://bugs.jquery.com/ticket/7322
* Quick improvement to the performace of .index() with no arguments - Adding a ↵gnarf2011-06-141-5/+10
| | | | unit test for .index() of a node without a parent returns -1
* Make sure that forms and selects are added to a jQuery set correctly. Fixes ↵John Resig2011-04-171-1/+1
| | | | #6912.
* Run order problem when running full test suite in Opera 11, removed failing ↵timmywil2011-04-111-2/+2
| | | | test as it passed by itself and there are others just like it
* Fix unit tests in firefox 4 and opera 11, passing null or undefined to ↵timmywil2011-04-111-1/+6
| | | | indexOf was throwing an error in those browsers
* Merge branch 'bug_7369' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-1/+1
|\ | | | | | | timmywil-bug_7369
| * Fixes #7369 - Using an attribute selector for a non-existent attribute ↵timmywil2011-03-301-1/+1
| | | | | | | | raised an exception on disconnected nodes
* | Merge branch '2773_find_closest' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-12/+28
|\ \ | | | | | | | | | | | | | | | | | | timmywil-2773_find_closest Conflicts: test/unit/traversing.js
| * | Remove test for bug #7369 to move the fix to a separate branch for a sooner pulltimmywil2011-03-301-2/+2
| | |
| * | Add node and jQuery object support to $.fn.closesttimmywil2011-03-211-8/+12
| | |
| * | Organizing varstimmywil2011-03-161-4/+3
| | |
| * | 2773: first pass adding node/jQuery object support to jQuery.fn.find; unit ↵timmywil2011-03-161-5/+18
| |/ | | | | | | tests added
* | Fix formatting.jeresig2011-04-101-1/+2
| |
* | Merge branch 'master' of git://github.com/jquery/jquery into bug_2773timmywil2011-02-261-5/+5
|\|
| * Fix some whitespace issues.Anton M2011-02-151-5/+5
| |
* | Fix bug #2773, jQuery.fn.is to accept JQuery and node objects, and a small ↵Timmy Willison2011-01-241-2/+3
|/ | | | fix for winnow getting an undefined selector
* Merge branch 'fix-7853-add-context' of https://github.com/dmethvin/jquery ↵John Resig2011-01-201-1/+1
|\ | | | | | | into dmethvin-fix-7853-add-context
| * By default, use document root rather than current selection's context when ↵Dave Methvin2010-12-281-1/+1
| | | | | | | | add()ing elements. Fixes #7853.
* | Fix tabs vs spaces in initial workaround commitadam j. sontag2011-01-171-1/+1
| |
* | shorten the SHAadam j. sontag2011-01-171-1/+1
| |
* | Add link to chrome issue ticketadam j. sontag2011-01-171-0/+1
| |
* | Add a comment to explain (and enforce the temporary-ness of) an extra line ↵adam j. sontag2011-01-171-0/+3
| | | | | | | | of code added to workaround a Chrome 10 bug
* | Merge branch 'master' of https://github.com/scottgonzalez/jqueryjeresig2011-01-141-2/+9
|\ \
| * | Avoid running jQuery.unique() for methods that are guaranteed to produce a ↵Scott González2011-01-141-2/+9
| | | | | | | | | | | | unique result set. Fixes #7964 - Some traversal methods perform an unnecessary uniqueness check.
* | | Fix a strange Chrome issuewycats2011-01-141-2/+3
|/ /
* / Clean trailing whitespace from all files.Colin Snover2010-12-301-7/+7
|/
* Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-3/+8
| | | | are each done on their own line.
* Forgot to remove the child selector in the previous commit.John Resig2010-10-121-1/+0
|
* The child selector-prefix branch doesn't work with selectors that have a ↵John Resig2010-10-121-5/+0
| | | | larger depth. Removing for now - will need to re-evaluate in the future.
* Make sure that .find() with multiple direct child selectors is handled ↵John Resig2010-10-121-2/+2
| | | | correctly. Fixes #7144.
* Make sure closest works on disconnected DOM nodes. Fixes #7142.John Resig2010-10-111-1/+1
|
* Tweaking some formatting of the closest changes.jeresig2010-10-101-8/+5
|
* Switch back to using Sizzle.matchesSelector.jeresig2010-10-101-6/+7
|
* Use the new Sizzle matches functionality.jeresig2010-10-101-1/+1
|
* Fix formatting and switch to using the new matchesSelector method in Sizzle.jeresig2010-10-101-13/+14
|
* Should improve performance of closest considerably. Benchmark proof in ↵wycats2010-10-091-11/+19
| | | | speed/closest.html
* Handle child selectors in particular - away from the selector engine. Fixes ↵John Resig2010-09-281-0/+6
| | | | #7029.
* Removing unique check on closest(Array) (it wasn't appropriate there and ↵jeresig2010-09-271-1/+7
| | | | broke functionality elsewhere) - follow-up to commit 8c41325a081f4009aa94748b9b6045e50a78422e. Also added another test for closest(Array) after a discussion with @jitter in 26b0e913dda386b6b2848196689a02a2da6aa40d.
* Merge branch 'closestbug-6700' of http://github.com/ajpiano/jquery into ↵jeresig2010-09-271-5/+9
|\ | | | | | | ajpiano-closestbug-6700
| * .closest() should return a unique set of elements, not duplicates of the ↵adam j. sontag2010-06-211-5/+9
| | | | | | | | same ancestor. Fixes #6700
* | Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-0/+4
|/ | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.