aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Removed extra semicolon leftover from recent tweaking.jeresig2010-03-311-1/+1
|
* Made it so that you no longer need to build jQuery in order to run the test ↵jeresig2010-03-231-31/+33
| | | | suite (but you'll still need a checkout of QUnit and Sizzle, at least).
* More changes to get jQuery in line with JSLint.jeresig2010-03-011-1/+2
|
* Land some additional tweaks related to running through JSLint.jeresig2010-03-011-2/+1
|
* Make sure that live events bubble unless explicitly told not to, like a ↵jeresig2010-02-261-3/+3
| | | | normal event. Fixes #6182.
* Filtering elements only. Fixed #5920Robert Katic2010-01-261-1/+1
|
* fixed jQuery.dir regression introduced with 1.4 *untils patch that errored ↵Ben Alman2010-01-241-1/+1
| | | | when traversing XHTML text nodes with an until test
* Make sure that disconnected nodes aren't sorted/uniqued. Fixes #5791.jeresig2010-01-131-3/+9
|
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-18/+45
| | | | jQuery Core Style Guideline.
* Removed jQuery.fn.contains - didn't match the :contains() selector and ↵jeresig2009-12-181-4/+0
| | | | confused things. Thanks ajpiano for the tip.
* Revert the changes from 65ebf57c1e5d7fa96536b66d4fcacbafad8dc1e5, they were ↵jeresig2009-12-171-1/+1
| | | | ineffectual against IE's insanity: http://ejohn.org/files/bugs/fragment/ Used a different tactic instead (just don't return a fragment from .parent()). Fixes #5638.
* Moved some methods around inbetween core.js and traversing.js. Core methods ↵John Resig2009-12-101-29/+19
| | | | shouldn't rely upon other modules (e.g. the selector engine) wherever possible.
* Make sure that the correct args are passed in to the filter callback (and by ↵John Resig2009-12-091-1/+1
| | | | extension, the not callback). Fixes #5594.
* Landing in jQuery.contains, jQuery.fn.contains, and jQuery.fn.has support. ↵Yehuda Katz2009-12-091-0/+15
| | | | Fixes #4101.
* Switched to using slice instead of join to get the correct results.jeresig2009-12-041-4/+3
|
* Landing Ben Alman's patch to add nextUntil, prevUntil, and parentsUntil. ↵Ben Alman2009-12-041-8/+22
| | | | Also adds some tests for prevAll and nextAll, and fixes an test edge case in parents.
* Minor syntax changes to the winnow function.jeresig2009-12-031-5/+10
|
* Re-worked the closest no-duplicate-selector code again to be more efficient.jeresig2009-12-031-15/+12
|
* Prevent duplicate selectors from having to match in closest.jeresig2009-12-031-4/+11
|
* No need to do the closest match if no selectors are passed in.jeresig2009-12-031-1/+1
|
* Added in the new .closest(Array) method, will be used to improve the ↵jeresig2009-12-021-9/+31
| | | | performance of live filtering.
* added missing semicolonsKarl Swedberg2009-11-281-3/+3
|
* added curly braces around all if/else statementsKarl Swedberg2009-11-281-2/+5
|
* Made the closest method evaluate the selector with appropriate context.Robert Katić2009-11-091-1/+2
|
* Fixing spacing problems from rkatic's patches.John Resig2009-11-071-3/+3
|
* Store last closer value to jQuery.lastCloser instead of using data API.rkatic2009-11-081-4/+5
|
* Make .add() take an optional context and - if a context is specified in the ↵John Resig2009-11-071-3/+3
| | | | root selector - use that as the base context.
* Moved a bunch of methods out of the jQuery-specific Sizzle code into ↵John Resig2009-10-261-3/+49
| | | | more-appropriate files, in jQuery itself.
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID). $("<div/>").after("<span/>") => [ div, span ] (calling after on a disconnected DOM node adds the nodes to the end of the jQuery set) $("<div/>").before("<span/>") => [ span, div ] (calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set) $("div").add("span") => [ div, span, span, div, span ] (results now come out in document order) $("div").find("code").andSelf(); => [ div, code, code ] (results now come out in document order) Same goes for .parents(), .nextAll(), .prevAll(), and .siblings(). Exception: .parents() will still return the results in reverse document order. jQuery.data(elem) => { object of data } (no longer returns the unique ID assigned to the node)
* Make jQuery.winnow a local functionYehuda Katz2009-09-151-3/+3
|
* Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.John Resig2009-09-091-1/+11
|
* Added support for .closest(filter, DOMElement). Fixes #4072.John Resig2009-07-281-2/+2
|
* Backing out commit #6507 - causes too many problems.John Resig2009-07-281-3/+2
|
* Implemented support for .context limited .closest() calls. Fixes #4072.John Resig2009-07-251-3/+4
|
* Unify .not and .filter (resolves #4200).Yehuda Katz2009-07-161-23/+26
| | | | - Both now support Function, Element, Selector, and Arrayish (including jQuery object)
* breaking jquery out into smaller modules. added attributes.js, ↵Brandon Aaron2009-03-181-0/+120
manipulation.js, and traversing.js