jquery.git
15 years agoAdd support for .get(-Number) Closes #4188
Yehuda Katz [Thu, 16 Jul 2009 07:31:41 +0000 (07:31 +0000)]
Add support for .get(-Number) Closes #4188

15 years agoMake toArray an alias for .get(). Closes #3999
Yehuda Katz [Thu, 16 Jul 2009 07:31:32 +0000 (07:31 +0000)]
Make toArray an alias for .get(). Closes #3999

15 years agoAdded gitignore for people using git-svn
Yehuda Katz [Thu, 16 Jul 2009 07:31:22 +0000 (07:31 +0000)]
Added gitignore for people using git-svn

15 years agoScope 'document' locally (also useful for sandboxing). Patch from Andrea Giammarchi...
John Resig [Wed, 15 Jul 2009 12:35:57 +0000 (12:35 +0000)]
Scope 'document' locally (also useful for sandboxing). Patch from Andrea Giammarchi. Fixes bug #4905.

15 years agoWe only support wrapping the first element around an element (all others are ignored...
John Resig [Tue, 14 Jul 2009 23:43:58 +0000 (23:43 +0000)]
We only support wrapping the first element around an element (all others are ignored). Fixes ticket #4903.

15 years agoFixed wrapping of elements that hold text nodes. Thanks to David Flanagan for the...
John Resig [Tue, 14 Jul 2009 23:28:07 +0000 (23:28 +0000)]
Fixed wrapping of elements that hold text nodes. Thanks to David Flanagan for the patch. Fixes #4902.

15 years agoFixed spelling mistake in Ajax tests.
John Resig [Tue, 14 Jul 2009 21:20:16 +0000 (21:20 +0000)]
Fixed spelling mistake in Ajax tests.

15 years agoFixed the handling of .status == 304 in Opera (it always returns 0). Also silently...
John Resig [Tue, 14 Jul 2009 21:13:23 +0000 (21:13 +0000)]
Fixed the handling of .status == 304 in Opera (it always returns 0). Also silently "pass" in Opera 9.6 (which is unable to send the correct headers with setRequestHeader). Follow-up to bug #4764.

15 years agoclearQueue and next should now work with default fx on all browsers
Yehuda Katz [Mon, 13 Jul 2009 22:21:40 +0000 (22:21 +0000)]
clearQueue and next should now work with default fx on all browsers

15 years agoUses the more stable font-size as a sentinel
Yehuda Katz [Mon, 13 Jul 2009 21:50:58 +0000 (21:50 +0000)]
Uses the more stable font-size as a sentinel

15 years agoTest Tweak to normalize the CSS results across browsers
Yehuda Katz [Mon, 13 Jul 2009 19:48:08 +0000 (19:48 +0000)]
Test Tweak to normalize the CSS results across browsers

15 years agoFix dangling comma of death in data.js
Yehuda Katz [Mon, 13 Jul 2009 19:24:44 +0000 (19:24 +0000)]
Fix dangling comma of death in data.js

15 years agoUpdates css() tests to use hex rather than color names
Yehuda Katz [Mon, 13 Jul 2009 19:24:23 +0000 (19:24 +0000)]
Updates css() tests to use hex rather than color names

15 years agoAdd tests for replaceAll(fn) and wrap(fn) -- mark wrapAll and wrapWithin as TODO
Yehuda Katz [Sun, 12 Jul 2009 21:08:54 +0000 (21:08 +0000)]
Add tests for replaceAll(fn) and wrap(fn) -- mark wrapAll and wrapWithin as TODO

15 years agoSupport for .foo(Function) and testing. TODO: More tests
Yehuda Katz [Sun, 12 Jul 2009 20:19:43 +0000 (20:19 +0000)]
Support for .foo(Function) and testing. TODO: More tests

15 years agoAdded test for css(String, Function) and css(Object) where values are Functions;...
Yehuda Katz [Sun, 12 Jul 2009 18:31:26 +0000 (18:31 +0000)]
Added test for css(String, Function) and css(Object) where values are Functions; fixed css(Object)

15 years agoAdd clearQueue for clearing non-fx queues
Yehuda Katz [Sun, 12 Jul 2009 15:14:01 +0000 (15:14 +0000)]
Add clearQueue for clearing non-fx queues

15 years agoAdded a next() shortcut for queues
Yehuda Katz [Sun, 12 Jul 2009 14:31:32 +0000 (14:31 +0000)]
Added a next() shortcut for queues

15 years agoIE doesn't seem to like caching fragments that have options in them. Ticket #4883.
John Resig [Sat, 11 Jul 2009 15:23:18 +0000 (15:23 +0000)]
IE doesn't seem to like caching fragments that have options in them. Ticket #4883.

15 years agoLimit domManip caching to strings < 512 characters long. Ticket #4883.
John Resig [Sat, 11 Jul 2009 14:50:59 +0000 (14:50 +0000)]
Limit domManip caching to strings < 512 characters long. Ticket #4883.

15 years agoFixes regression in .attr(), patch by David Flanagan. Fixes #4884.
John Resig [Sat, 11 Jul 2009 13:57:38 +0000 (13:57 +0000)]
Fixes regression in .attr(), patch by David Flanagan. Fixes #4884.

15 years agoAdded caching to domManip. Fixes #4883.
John Resig [Sat, 11 Jul 2009 13:49:46 +0000 (13:49 +0000)]
Added caching to domManip. Fixes #4883.

15 years agoOptimized jQuery(Element) to not call jQuery() twice.
John Resig [Sat, 11 Jul 2009 13:44:44 +0000 (13:44 +0000)]
Optimized jQuery(Element) to not call jQuery() twice.

15 years agoreverting sizzle updates from previous commit, appears i had an outdated version
Brandon Aaron [Tue, 23 Jun 2009 18:14:57 +0000 (18:14 +0000)]
reverting sizzle updates from previous commit, appears i had an outdated version

15 years agofix for #4512 and minor sizzle updates
Brandon Aaron [Tue, 23 Jun 2009 18:11:09 +0000 (18:11 +0000)]
fix for #4512 and minor sizzle updates

15 years agojquery core: Closes #2827. jQuery.each iterates over functions
Ariel Flesler [Sat, 20 Jun 2009 15:51:19 +0000 (15:51 +0000)]
jquery core: Closes #2827. jQuery.each iterates over functions

15 years agofix for #3533, triggering an event with a colon in the name on a table no longer...
Brandon Aaron [Wed, 17 Jun 2009 02:31:45 +0000 (02:31 +0000)]
fix for #3533, triggering an event with a colon in the name on a table no longer throws an error in IE

15 years agoMinor tab-spacing tweak.
John Resig [Mon, 15 Jun 2009 13:40:10 +0000 (13:40 +0000)]
Minor tab-spacing tweak.

15 years agoAdding support for etags in $.ajax() - and simplified the if-modified-since implement...
John Resig [Mon, 15 Jun 2009 13:36:12 +0000 (13:36 +0000)]
Adding support for etags in $.ajax() - and simplified the if-modified-since implementation. Thanks to Lawrence for the patch! Closes ticket #4764.

15 years agojquery core: removed the version.txt newline; please keep it that way, otherwise...
Jörn Zaefferer [Thu, 4 Jun 2009 17:36:23 +0000 (17:36 +0000)]
jquery core: removed the version.txt newline; please keep it that way, otherwise that ant replacement fails, it inserts the file content wherever it finds @VERSION

15 years agojquery fx: Exposing the ticking function
Ariel Flesler [Tue, 2 Jun 2009 02:14:58 +0000 (02:14 +0000)]
jquery fx: Exposing the ticking function

15 years agoReverting accidental test suite corruption from the Sizzle merge.
John Resig [Wed, 20 May 2009 21:59:24 +0000 (21:59 +0000)]
Reverting accidental test suite corruption from the Sizzle merge.

15 years agoRemoved some cases of strict errors.
John Resig [Wed, 20 May 2009 21:52:47 +0000 (21:52 +0000)]
Removed some cases of strict errors.

15 years agoSwitched to using new Function instead of eval for handling JSON parsing (Fixes bug...
John Resig [Wed, 20 May 2009 21:28:48 +0000 (21:28 +0000)]
Switched to using new Function instead of eval for handling JSON parsing (Fixes bug #4680). Added support for JSON.parse, if it exists (Fixes bug #4429).

15 years agoDid some light reordering of the jQuery definition. Moved window and undefined to...
John Resig [Wed, 20 May 2009 21:12:08 +0000 (21:12 +0000)]
Did some light reordering of the jQuery definition. Moved window and undefined to exist in intro/outro.

15 years agofix :hidden and :visible selectors. fixes #4512
Brandon Aaron [Mon, 18 May 2009 15:36:36 +0000 (15:36 +0000)]
fix :hidden and :visible selectors. fixes #4512

15 years agofix for #4183
Brandon Aaron [Sat, 16 May 2009 20:23:58 +0000 (20:23 +0000)]
fix for #4183

15 years agoerror case for an ajax test
Brandon Aaron [Sat, 16 May 2009 20:22:47 +0000 (20:22 +0000)]
error case for an ajax test

15 years agofix remove and empty to work properly in IE when an element with the id of length...
Brandon Aaron [Sat, 16 May 2009 19:32:16 +0000 (19:32 +0000)]
fix remove and empty to work properly in IE when an element with the id of length exists. fixes ajax event hanlders in test suite from firing multiple times because they did not get cleaned up.

15 years agoprevent fx test html from showing in IE
Brandon Aaron [Sat, 16 May 2009 17:39:22 +0000 (17:39 +0000)]
prevent fx test html from showing in IE

15 years agounit tests for setting cellspacing, rowspan, and colspan
Brandon Aaron [Sat, 16 May 2009 15:10:24 +0000 (15:10 +0000)]
unit tests for setting cellspacing, rowspan, and colspan

15 years agofix for #4397
Brandon Aaron [Sat, 16 May 2009 14:45:46 +0000 (14:45 +0000)]
fix for #4397

15 years agotidy up fix for #3981, thanks matt kruse
Brandon Aaron [Thu, 14 May 2009 18:46:58 +0000 (18:46 +0000)]
tidy up fix for #3981, thanks matt kruse

15 years agoopacity is now retrieved from stylesheet in IE. fixes #3981
Brandon Aaron [Thu, 14 May 2009 14:44:31 +0000 (14:44 +0000)]
opacity is now retrieved from stylesheet in IE. fixes #3981

15 years agofix regression in removing live events caused by r6324
Brandon Aaron [Tue, 12 May 2009 15:43:51 +0000 (15:43 +0000)]
fix regression in removing live events caused by r6324

15 years agojquery event: misc change
Ariel Flesler [Sun, 10 May 2009 14:38:35 +0000 (14:38 +0000)]
jquery event: misc change

15 years agounused, left-over code from r6344
Brandon Aaron [Thu, 7 May 2009 18:09:17 +0000 (18:09 +0000)]
unused, left-over code from r6344

15 years agoanother unit test for index method
Brandon Aaron [Thu, 7 May 2009 16:59:35 +0000 (16:59 +0000)]
another unit test for index method

15 years ago.bind() now accepts an optional thisObject as the last argument which is used to...
Brandon Aaron [Thu, 7 May 2009 00:50:28 +0000 (00:50 +0000)]
.bind() now accepts an optional thisObject as the last argument which is used to change the value of this in event callbacks. fixes #3699

15 years agofix for #4234. hover can take one function to use for both enter and leave.
Brandon Aaron [Wed, 6 May 2009 02:17:24 +0000 (02:17 +0000)]
fix for #4234. hover can take one function to use for both enter and leave.

15 years agofix for #3286
Brandon Aaron [Wed, 6 May 2009 01:24:22 +0000 (01:24 +0000)]
fix for #3286

15 years agounit tests for using jQuery events on non-dom elements. fixes #3439. thanks morgan
Brandon Aaron [Mon, 4 May 2009 04:54:09 +0000 (04:54 +0000)]
unit tests for using jQuery events on non-dom elements. fixes #3439. thanks morgan

15 years agofix :hidden selector that was accidentally reverted in previous commit, also fixed...
Brandon Aaron [Mon, 4 May 2009 00:19:57 +0000 (00:19 +0000)]
fix :hidden selector that was accidentally reverted in previous commit, also fixed tests for :hidden selector in IE6

15 years agofix memory leak in IE
Brandon Aaron [Mon, 4 May 2009 00:05:04 +0000 (00:05 +0000)]
fix memory leak in IE

15 years agotestrunner: Updating an orphaned test
Ariel Flesler [Sun, 3 May 2009 17:02:56 +0000 (17:02 +0000)]
testrunner: Updating an orphaned test

15 years agojquery core: $() -> $(document) and $(undefined) -> $([]). Removed a duplicated block.
Ariel Flesler [Sun, 3 May 2009 15:57:25 +0000 (15:57 +0000)]
jquery core: $() -> $(document) and $(undefined) -> $([]). Removed a duplicated block.

15 years agomake sure toggleClass does not delete classNames when forcefully removing classes...
Brandon Aaron [Sat, 2 May 2009 22:35:39 +0000 (22:35 +0000)]
make sure toggleClass does not delete classNames when forcefully removing classes and they are already removed

15 years agotoggleClass can now toggle multiple classNames (space seperated list) and toggle...
Brandon Aaron [Sat, 2 May 2009 21:14:38 +0000 (21:14 +0000)]
toggleClass can now toggle multiple classNames (space seperated list) and toggle the whole className. fixes #3825.

15 years agoactually should be 6330, not 6329
Brandon Aaron [Sat, 2 May 2009 19:23:53 +0000 (19:23 +0000)]
actually should be 6330, not 6329

15 years agoindex now works in reverse when passed a selector or undefined. fixes #3971
Brandon Aaron [Sat, 2 May 2009 19:22:55 +0000 (19:22 +0000)]
index now works in reverse when passed a selector or undefined. fixes #3971

15 years agofix global event triggering that i broke in r6323
Brandon Aaron [Fri, 1 May 2009 00:59:27 +0000 (00:59 +0000)]
fix global event triggering that i broke in r6323

15 years agospecial event refactor left over code
Brandon Aaron [Fri, 1 May 2009 00:36:21 +0000 (00:36 +0000)]
special event refactor left over code

15 years agofix for #2620
Brandon Aaron [Fri, 1 May 2009 00:21:29 +0000 (00:21 +0000)]
fix for #2620

15 years agoonly copy guid from handler to modifiedHandler if it does not already have one
Brandon Aaron [Fri, 1 May 2009 00:02:51 +0000 (00:02 +0000)]
only copy guid from handler to modifiedHandler if it does not already have one

15 years agolive event handlers now receive data from trigger, fixes #4532, thanks nbubna
Brandon Aaron [Thu, 30 Apr 2009 21:50:15 +0000 (21:50 +0000)]
live event handlers now receive data from trigger, fixes #4532, thanks nbubna

15 years agorefactor specialAll into add and remove hooks for existing special events, live now...
Brandon Aaron [Thu, 30 Apr 2009 21:44:25 +0000 (21:44 +0000)]
refactor specialAll into add and remove hooks for existing special events, live now accepts optional data param like bind, fixes #4612 and #4613, thanks to Mike Helgeson

15 years agoevent clean up
Brandon Aaron [Thu, 30 Apr 2009 01:26:09 +0000 (01:26 +0000)]
event clean up

15 years agoenable test for binding events cross-frame that was fixed in r6316
Brandon Aaron [Wed, 29 Apr 2009 22:04:41 +0000 (22:04 +0000)]
enable test for binding events cross-frame that was fixed in r6316

15 years ago.unbind() without any arguments now also unbinds namespaced events. fixes #4609 and...
Brandon Aaron [Wed, 29 Apr 2009 21:45:58 +0000 (21:45 +0000)]
.unbind() without any arguments now also unbinds namespaced events. fixes #4609 and #4241

15 years agofixing a few more memory leaks in IE
Brandon Aaron [Wed, 22 Apr 2009 20:00:30 +0000 (20:00 +0000)]
fixing a few more memory leaks in IE

15 years agooffset returns null for window and document elements. fixes #4136 again
Brandon Aaron [Wed, 22 Apr 2009 05:29:01 +0000 (05:29 +0000)]
offset returns null for window and document elements. fixes #4136 again

15 years agofix for #4216. css now ignores negative numbers for width and height when passed...
Brandon Aaron [Wed, 22 Apr 2009 05:23:53 +0000 (05:23 +0000)]
fix for #4216. css now ignores negative numbers for width and height when passed an object of props and vals.

15 years agofix for #3546. css now works with other windows than just the one it was loaded in.
Brandon Aaron [Wed, 22 Apr 2009 04:39:44 +0000 (04:39 +0000)]
fix for #3546. css now works with other windows than just the one it was loaded in.

15 years agofix for #4268. bind now works with iframe windows. thanks tr4nslator
Brandon Aaron [Wed, 22 Apr 2009 04:18:53 +0000 (04:18 +0000)]
fix for #4268. bind now works with iframe windows. thanks tr4nslator

15 years agofix for #2911
Brandon Aaron [Wed, 22 Apr 2009 02:31:29 +0000 (02:31 +0000)]
fix for #2911

15 years agoremove radix param for parseFloat calls
Brandon Aaron [Wed, 22 Apr 2009 01:34:13 +0000 (01:34 +0000)]
remove radix param for parseFloat calls

15 years agowidth, height, scrollLeft, and scrollTop now work with windows and documents other...
Brandon Aaron [Wed, 22 Apr 2009 00:55:44 +0000 (00:55 +0000)]
width, height, scrollLeft, and scrollTop now work with windows and documents other than just the one it was loaded in (like iframes and popups)

15 years agoclean up offset. #4456 thanks pbcomm
Brandon Aaron [Tue, 21 Apr 2009 19:19:28 +0000 (19:19 +0000)]
clean up offset. #4456 thanks pbcomm

15 years agoactually don't need to null out as much as i thought i did to fix that memory leak
Brandon Aaron [Tue, 21 Apr 2009 19:09:47 +0000 (19:09 +0000)]
actually don't need to null out as much as i thought i did to fix that memory leak

15 years agofixing memory leaks in IE
Brandon Aaron [Tue, 21 Apr 2009 18:46:39 +0000 (18:46 +0000)]
fixing memory leaks in IE

15 years agoAdded explicit module names to the new unit tests.
John Resig [Mon, 20 Apr 2009 17:05:18 +0000 (17:05 +0000)]
Added explicit module names to the new unit tests.

15 years agoUnified the formatting of core.js. === or !== are used wherever appropriate, syntax...
John Resig [Tue, 31 Mar 2009 17:35:20 +0000 (17:35 +0000)]
Unified the formatting of core.js. === or !== are used wherever appropriate, syntax has been normalized, braces are added in all cases, and jQuery() now returns an empty set.

15 years agofix for #4439, offset.initialize can cause the page to jump
Brandon Aaron [Mon, 30 Mar 2009 07:59:31 +0000 (07:59 +0000)]
fix for #4439, offset.initialize can cause the page to jump

15 years agofix for #4378, base tag causes javascript error in IE when loading cross-domain JS...
Brandon Aaron [Fri, 27 Mar 2009 18:20:57 +0000 (18:20 +0000)]
fix for #4378, base tag causes javascript error in IE when loading cross-domain JS via ajax

15 years agoremove trailing spaces
Brandon Aaron [Mon, 23 Mar 2009 01:55:17 +0000 (01:55 +0000)]
remove trailing spaces

15 years agomoving dimension related unit tests to dimensions test module
Brandon Aaron [Sun, 22 Mar 2009 23:25:58 +0000 (23:25 +0000)]
moving dimension related unit tests to dimensions test module

15 years agodecoupling styles retrieval from the attr method
Brandon Aaron [Sun, 22 Mar 2009 23:25:03 +0000 (23:25 +0000)]
decoupling styles retrieval from the attr method

15 years agomoving some vars from manipulations.js to attributes.js
Brandon Aaron [Sun, 22 Mar 2009 15:06:58 +0000 (15:06 +0000)]
moving some vars from manipulations.js to attributes.js

15 years agofix for #4399, removing unused variables
Brandon Aaron [Sun, 22 Mar 2009 04:24:40 +0000 (04:24 +0000)]
fix for #4399, removing unused variables

15 years agofix for #4189, live/die now work with contexts other than just document
Brandon Aaron [Fri, 20 Mar 2009 03:10:07 +0000 (03:10 +0000)]
fix for #4189, live/die now work with contexts other than just document

15 years agoAdded some more information to the unload event cleanup.
John Resig [Thu, 19 Mar 2009 15:16:02 +0000 (15:16 +0000)]
Added some more information to the unload event cleanup.

15 years agofix for #4115
Brandon Aaron [Thu, 19 Mar 2009 03:17:38 +0000 (03:17 +0000)]
fix for #4115

15 years agofix for #4263, better support for nested fixed position elements
Brandon Aaron [Thu, 19 Mar 2009 02:54:57 +0000 (02:54 +0000)]
fix for #4263, better support for nested fixed position elements

15 years agobreaking jquery out into smaller modules. added attributes.js, manipulation.js, and...
Brandon Aaron [Wed, 18 Mar 2009 21:15:38 +0000 (21:15 +0000)]
breaking jquery out into smaller modules. added attributes.js, manipulation.js, and traversing.js

15 years agofix for #4374, gap in :hidden, :visible logic
Brandon Aaron [Wed, 18 Mar 2009 17:55:07 +0000 (17:55 +0000)]
fix for #4374, gap in :hidden, :visible logic

15 years agofix for #4204, fadeTo shows hidden elements before animating
Brandon Aaron [Wed, 18 Mar 2009 14:58:06 +0000 (14:58 +0000)]
fix for #4204, fadeTo shows hidden elements before animating

15 years agofix for #4074, pass context to jQuery.clean for jQuery.clone
Brandon Aaron [Wed, 18 Mar 2009 02:48:32 +0000 (02:48 +0000)]
fix for #4074, pass context to jQuery.clean for jQuery.clone

15 years agofix for #3688, setting type attribute on button causes IE to throw error
Brandon Aaron [Tue, 17 Mar 2009 22:27:25 +0000 (22:27 +0000)]
fix for #3688, setting type attribute on button causes IE to throw error

15 years agousing parseFloat for offset and position methods and removed num helper method
Brandon Aaron [Tue, 17 Mar 2009 21:07:11 +0000 (21:07 +0000)]
using parseFloat for offset and position methods and removed num helper method

15 years agoreturn null when no matched elements exist for offset and position
Brandon Aaron [Tue, 17 Mar 2009 20:50:17 +0000 (20:50 +0000)]
return null when no matched elements exist for offset and position