aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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