Oleg
05aff40231
Optimization of array operations, closes gh-844.
2012-07-06 09:48:52 -04:00
timmywil
b418fa1f09
UPDATE SIZZLE: completed rewrite for better things!
...
Remove reverse in traversing for comma selectors. Sizzle's handling of commas is now more consistent.
2012-07-02 11:34:26 -04:00
Dave Methvin
cde4c326b8
Fix #11969 . Never a null moment when checking siblings.
2012-06-26 17:08:49 -04:00
Richard Gibson
a101e81bde
Interim take on cross-module variables, closes gh-817.
2012-06-15 21:01:44 -04:00
Rick Waldron
7c23b77af2
Strips IIFEs from modules; Always require built jQuery for tests.
2012-06-04 12:48:18 -04:00
Rick Waldron
9a3046c375
Space => tab indent correction
2012-06-03 10:42:24 -04:00
Rick Waldron
1442bf9449
Removes temp var, shaves 2 bytes from gzipped size
2012-05-31 18:15:57 -04:00
Ben Alman
02dd7c570b
jQuery#addBack supports an optional selector that can be used to filter the prior set before adding it back. Fixes #9800
2012-05-29 12:04:27 -04:00
Dave Methvin
f76518e393
Rename .andSelf to .addBack, deprecate .andSelf #9800
2012-05-15 23:14:13 -04:00
Dave Methvin
56d5c1c3a3
Fix #11738 . Remove deprecated .closest(Array) => Array.
2012-05-11 15:11:13 -04:00
Rick Waldron
38fe2deab5
Use a do-while statement to reduce redundant code
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:49:23 -04:00
Rick Waldron
b26c34a69f
Fixes lint issues.
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:45:22 -04:00
Rick Waldron
df254d47e4
Additional reduction per @Raynos suggestion. Thanks!
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:38:55 -04:00
Rick Waldron
2af3642cd5
Further reduce historical cruft. Removes the untested and unnec. jQuery.nth()
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-05-07 16:05:05 -04:00
Sindre Sorhus
4de7b5412e
Remove unnecessary arguments from .nth(). Fixes #11720
...
Also use postfix increment to make it a little clearer.
2012-05-07 19:59:11 +02:00
Richard Gibson
590bcab245
Fix #11543 : .has should work on detached elements.
2012-04-05 21:03:41 -04:00
Richard Gibson
a619cb3063
Fix #11370 : .siblings() shouldn't throw exception on a detached element
2012-02-23 22:40:07 -05:00
timmywil
2a63b980ed
Use Sizzle.Expr.match.globalPOS for identifying POS selectors in traversing. Fixes #10970 .
2011-12-12 11:23:47 -05:00
Mike Sherov
98386cfd77
Fix #10692 . JSLint is dead! Long live JSHint!
...
Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
2011-12-08 21:04:57 -05:00
Berker Peksag
90c019de5e
Chrome 10 slice bug has been fixed; remove workaround.
...
See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238 .
2011-11-06 16:38:26 -05:00
Rick Waldron
27d099d471
Cleanup spacing in traversing.js. Fixes #10601
2011-10-27 15:35:09 -04:00
Dave Methvin
d920ac68fd
Simplify the .closest(Array)
code since we no longer use it internally.
...
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 70e2e32e0e
for that commit.
2011-09-23 09:11:02 -04:00
Dave Methvin
70e2e32e0e
Landing pull request 491. Fix #7322 . Make .is()
with a positional selector work like delegated event logic. Fixes #7322 .
...
More Details:
- https://github.com/jquery/jquery/pull/491
- http://bugs.jquery.com/ticket/7322
2011-09-19 23:50:52 -04:00
gnarf
9a96af1d59
Quick improvement to the performace of .index() with no arguments - Adding a unit test for .index() of a node without a parent returns -1
2011-06-14 23:38:36 -05:00
John Resig
728a70c036
Make sure that forms and selects are added to a jQuery set correctly. Fixes #6912 .
2011-04-17 10:51:24 -07:00
timmywil
a564a0b1ec
Run order problem when running full test suite in Opera 11, removed failing test as it passed by itself and there are others just like it
2011-04-11 12:24:31 -04:00
timmywil
eb857e2b71
Fix unit tests in firefox 4 and opera 11, passing null or undefined to indexOf was throwing an error in those browsers
2011-04-11 11:54:55 -04:00
jeresig
909a6ff60a
Merge branch 'bug_7369' of https://github.com/timmywil/jquery into timmywil-bug_7369
2011-04-10 16:48:02 -04:00
jeresig
523db95de2
Merge branch '2773_find_closest' of https://github.com/timmywil/jquery into timmywil-2773_find_closest
...
Conflicts:
test/unit/traversing.js
2011-04-10 16:37:09 -04:00
jeresig
52f31054fd
Fix formatting.
2011-04-10 16:32:40 -04:00
timmywil
a807451a23
Fixes #7369 - Using an attribute selector for a non-existent attribute raised an exception on disconnected nodes
2011-03-30 23:39:19 -04:00
timmywil
1a16776730
Remove test for bug #7369 to move the fix to a separate branch for a sooner pull
2011-03-30 23:23:38 -04:00
timmywil
e09d8898d8
Add node and jQuery object support to $.fn.closest
2011-03-21 20:59:20 -04:00
timmywil
929792834f
Organizing vars
2011-03-16 14:41:26 -04:00
timmywil
7a69e34a5c
2773: first pass adding node/jQuery object support to jQuery.fn.find; unit tests added
2011-03-16 01:16:32 -04:00
timmywil
9e5ec378e3
Merge branch 'master' of git://github.com/jquery/jquery into bug_2773
2011-02-26 18:53:25 -05:00
Anton M
6b08d88d04
Fix some whitespace issues.
2011-02-15 22:09:09 +01:00
Timmy Willison
ed48787ec5
Fix bug #2773 , jQuery.fn.is to accept JQuery and node objects, and a small fix for winnow getting an undefined selector
2011-01-24 16:18:19 -05:00
John Resig
2e2d5e9db5
Merge branch 'fix-7853-add-context' of https://github.com/dmethvin/jquery into dmethvin-fix-7853-add-context
2011-01-20 14:51:30 -05:00
adam j. sontag
d9660e1bf4
Fix tabs vs spaces in initial workaround commit
2011-01-17 17:20:37 -05:00
adam j. sontag
78be517727
shorten the SHA
2011-01-17 17:08:44 -05:00
adam j. sontag
4058881784
Add link to chrome issue ticket
2011-01-17 17:03:45 -05:00
adam j. sontag
28a1bad7b1
Add a comment to explain (and enforce the temporary-ness of) an extra line of code added to workaround a Chrome 10 bug
2011-01-17 16:10:14 -05:00
jeresig
a7ab491a5d
Merge branch 'master' of https://github.com/scottgonzalez/jquery
2011-01-14 11:23:05 -05:00
wycats
52a02383fa
Fix a strange Chrome issue
2011-01-14 11:21:45 -05:00
Scott González
e5ee89ec9a
Avoid running jQuery.unique() for methods that are guaranteed to produce a unique result set. Fixes #7964 - Some traversal methods perform an unnecessary uniqueness check.
2011-01-14 09:55:40 -05:00
Colin Snover
3e0cc81504
Clean trailing whitespace from all files.
2010-12-30 00:34:48 -06:00
Dave Methvin
c27d5ca6f5
By default, use document root rather than current selection's context when add()ing elements. Fixes #7853 .
2010-12-28 21:07:04 -05:00
John Resig
fb48ae8e6c
Make sure that when multiple variables are being declared that assignments are each done on their own line.
2010-11-09 11:09:07 -05:00
John Resig
478fa8fdb3
Forgot to remove the child selector in the previous commit.
2010-10-12 10:56:02 -04:00