jquery.git
16 years agoMerged dimensions with core
Brandon Aaron [Tue, 29 Apr 2008 03:26:06 +0000 (03:26 +0000)]
Merged dimensions with core

16 years agojQuery.event.fix performance boost. An example: click event was previously ~3ms and...
Brandon Aaron [Mon, 28 Apr 2008 21:09:27 +0000 (21:09 +0000)]
jQuery.event.fix performance boost. An example: click event was previously ~3ms and is now < 1ms. jQuery.event.trigger also got another small boost in performance.

16 years agojquery core: fix for #1960, delegating to document.getElementsByName for [name=....
Jörn Zaefferer [Mon, 28 Apr 2008 14:11:35 +0000 (14:11 +0000)]
jquery core: fix for #1960, delegating to document.getElementsByName for [name=...] selectors (not in combination with :not)

16 years agojquery core: tests for #2616
Jörn Zaefferer [Mon, 28 Apr 2008 14:00:27 +0000 (14:00 +0000)]
jquery core: tests for #2616

16 years agoPrevent a single event object from being fixed more than once
Brandon Aaron [Sun, 27 Apr 2008 23:08:31 +0000 (23:08 +0000)]
Prevent a single event object from being fixed more than once

16 years agoOptimization for jQuery.event.fix ... don't send fake event through jQuery.event.fix
Brandon Aaron [Sun, 27 Apr 2008 20:37:58 +0000 (20:37 +0000)]
Optimization for jQuery.event.fix ... don't send fake event through jQuery.event.fix

16 years agojquery core: fixed makeArray to recognize the window (has length)
Ariel Flesler [Fri, 25 Apr 2008 03:48:07 +0000 (03:48 +0000)]
jquery core: fixed makeArray to recognize the window (has length)
test runner: updated the tests for makeArray

16 years agojquery core: simplified the code using the new jQuery.makeArray from [5314] where...
Ariel Flesler [Thu, 24 Apr 2008 21:46:22 +0000 (21:46 +0000)]
jquery core: simplified the code using the new jQuery.makeArray from [5314] where possible.

16 years ago- Adding the enhancements to the test runner, to accept multiple(and negative) filter...
Ariel Flesler [Thu, 24 Apr 2008 21:32:35 +0000 (21:32 +0000)]
- Adding the enhancements to the test runner, to accept multiple(and negative) filters from the GET variables, as specified in the ticket #2738.

16 years agojquery core: Patch from #2619 applied, making makeArray more flexible and faster...
Jörn Zaefferer [Thu, 24 Apr 2008 21:23:36 +0000 (21:23 +0000)]
jquery core: Patch from #2619 applied, making makeArray more flexible and faster; removed hint to ticket from (previously failing) test

16 years agotestrunner: refactored url-test-filter, still regex based
Jörn Zaefferer [Thu, 24 Apr 2008 20:08:50 +0000 (20:08 +0000)]
testrunner: refactored url-test-filter, still regex based

16 years agoFixed regression with 5276 where return false in first handler of multiple handlers...
Brandon Aaron [Wed, 23 Apr 2008 18:57:17 +0000 (18:57 +0000)]
Fixed regression with 5276 where return false in first handler of multiple handlers was ignored. And 5276 log message says 200% but I meant 20%.

16 years ago- adding the tests for the changes to $.makeArray, proposed at #2619
Ariel Flesler [Tue, 22 Apr 2008 23:07:35 +0000 (23:07 +0000)]
- adding the tests for the changes to $.makeArray, proposed at #2619

16 years agojquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run...
Jörn Zaefferer [Tue, 22 Apr 2008 22:43:18 +0000 (22:43 +0000)]
jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module

16 years agojquery.ajax: fix for beforeSend-cancelling-sideeffects
Jörn Zaefferer [Tue, 22 Apr 2008 22:18:11 +0000 (22:18 +0000)]
jquery.ajax: fix for beforeSend-cancelling-sideeffects

16 years agojquery.ajax: improvement for #2688, added test
Jörn Zaefferer [Tue, 22 Apr 2008 22:07:17 +0000 (22:07 +0000)]
jquery.ajax: improvement for #2688, added test

16 years agojquery.event: Patch for #2708
Jörn Zaefferer [Tue, 22 Apr 2008 21:59:40 +0000 (21:59 +0000)]
jquery.event: Patch for #2708

16 years agoSome small optimizations to the event module. jQuery.event.trigger over 200% faster...
Brandon Aaron [Tue, 22 Apr 2008 05:23:55 +0000 (05:23 +0000)]
Some small optimizations to the event module. jQuery.event.trigger over 200% faster in IE and less code. Thanks in large to Ariel Flesler.

16 years agoSmall optimization to offset (thanks Ariel Flesler)
Brandon Aaron [Mon, 21 Apr 2008 22:54:46 +0000 (22:54 +0000)]
Small optimization to offset (thanks Ariel Flesler)

16 years agoSmall optimization to jQuery.curCSS (thanks Ariel Flesler)
Brandon Aaron [Mon, 21 Apr 2008 22:54:25 +0000 (22:54 +0000)]
Small optimization to jQuery.curCSS (thanks Ariel Flesler)

16 years agoTrigger onclick handlers of links
Brandon Aaron [Mon, 21 Apr 2008 20:39:17 +0000 (20:39 +0000)]
Trigger onclick handlers of links

16 years agoCloses #2688
Yehuda Katz [Mon, 14 Apr 2008 18:16:01 +0000 (18:16 +0000)]
Closes #2688

16 years agoTagging the 1.2.4a release.
John Resig [Thu, 10 Apr 2008 01:17:07 +0000 (01:17 +0000)]
Tagging the 1.2.4a release.

16 years ago$.extend deep now copies children's children, ect...
Sean Catchpole [Tue, 8 Apr 2008 16:40:03 +0000 (16:40 +0000)]
$.extend deep now copies children's children, ect...

16 years agojquery core: updated version pre-1.2.4
Jörn Zaefferer [Mon, 17 Mar 2008 10:53:00 +0000 (10:53 +0000)]
jquery core: updated version pre-1.2.4

16 years agoMade outerHeight/outerWidth accept .outerWidth(true) to include the margin. If any...
John Resig [Sat, 15 Mar 2008 19:00:07 +0000 (19:00 +0000)]
Made outerHeight/outerWidth accept .outerWidth(true) to include the margin. If any options are passed in it's assumed that you want the margin included.

16 years agoImported the innerHeight and outerHeight methods from the Dimensions plugin.
John Resig [Sat, 15 Mar 2008 18:53:40 +0000 (18:53 +0000)]
Imported the innerHeight and outerHeight methods from the Dimensions plugin.

16 years agoFixed issue with typeof check - "array" isn't a valid type.
John Resig [Sun, 17 Feb 2008 15:05:55 +0000 (15:05 +0000)]
Fixed issue with typeof check - "array" isn't a valid type.

16 years agoLanded a fix for bug #2037.
John Resig [Wed, 6 Feb 2008 05:18:25 +0000 (05:18 +0000)]
Landed a fix for bug #2037.

16 years agoLanded a minor fix for AIR (in the offset method).
John Resig [Wed, 6 Feb 2008 03:48:22 +0000 (03:48 +0000)]
Landed a minor fix for AIR (in the offset method).

16 years agoTagging the 1.2.3 release.
John Resig [Wed, 6 Feb 2008 01:03:40 +0000 (01:03 +0000)]
Tagging the 1.2.3 release.

16 years agoFixed .unbind('.namespace').
Scott González [Tue, 5 Feb 2008 19:32:00 +0000 (19:32 +0000)]
Fixed .unbind('.namespace').

16 years agoTagging the 1.2.3b release.
John Resig [Sun, 3 Feb 2008 21:46:47 +0000 (21:46 +0000)]
Tagging the 1.2.3b release.

16 years agoYou can now overwrite values returned from .data() with .bind("getData") - returning...
John Resig [Sun, 3 Feb 2008 18:43:04 +0000 (18:43 +0000)]
You can now overwrite values returned from .data() with .bind("getData") - returning a value will override any bound value on that element.

16 years agoTweaked the .data() event triggering - it now triggers a single 'setData' event,...
John Resig [Sun, 3 Feb 2008 17:56:21 +0000 (17:56 +0000)]
Tweaked the .data() event triggering - it now triggers a single 'setData' event, passing in a key value pair of what was changed.

16 years agoAdded support for .unbind(".test") to unbind all namespaced events on an element.
John Resig [Sun, 3 Feb 2008 04:33:11 +0000 (04:33 +0000)]
Added support for .unbind(".test") to unbind all namespaced events on an element.

16 years agoAdded $().data(), $().removeData(), and .bind("click!"). .data() and .removeData...
John Resig [Sun, 3 Feb 2008 04:05:24 +0000 (04:05 +0000)]
Added $().data(), $().removeData(), and .bind("click!"). .data() and .removeData() handle namespaced data, .data() triggers a "set-KEY" event on all modified elements, and .bind("click!") only triggers a click (and no namespaced events).

16 years agoUpdated the years on the licensing.
John Resig [Fri, 1 Feb 2008 23:23:11 +0000 (23:23 +0000)]
Updated the years on the licensing.

16 years agoTagging the 1.2.3a release.
John Resig [Mon, 28 Jan 2008 19:37:46 +0000 (19:37 +0000)]
Tagging the 1.2.3a release.

16 years agoFixed make speed.
John Resig [Mon, 28 Jan 2008 19:32:57 +0000 (19:32 +0000)]
Fixed make speed.

16 years agoDe-eval'd selectors and the various DOM methods (will marginally help our speed and...
John Resig [Sat, 26 Jan 2008 00:26:28 +0000 (00:26 +0000)]
De-eval'd selectors and the various DOM methods (will marginally help our speed and make us more compatible with projects like Caja and Adobe AIR). Left a selector eval in for backwards compatibility support of selector plugins.

16 years agoFix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignme...
David Serduke [Wed, 23 Jan 2008 03:54:23 +0000 (03:54 +0000)]
Fix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignment in the clone() function for IE.

16 years agoglobal replace for @VERSION, fixed #2101
Jörn Zaefferer [Sun, 20 Jan 2008 14:23:22 +0000 (14:23 +0000)]
global replace for @VERSION, fixed #2101

16 years agoFixed #2174 by removing the s.dataType == "json" check for possible cross domain...
David Serduke [Thu, 17 Jan 2008 21:38:58 +0000 (21:38 +0000)]
Fixed #2174 by removing the s.dataType == "json" check for possible cross domain since it causes absolute urls to use a <script> tag ajax retrieval even though absolute urls work fine for retrieving local data.  Cross-domain jsonp will still work since the $.ajax() function actually changes the s.dataType to "script" before it reaches this check in cases where it is s.dataType == "jsonp" or s.dataType == "json" and a parameter has =? in it.

16 years agoUpdating version number to 1.2.3-pre
David Serduke [Thu, 17 Jan 2008 21:31:28 +0000 (21:31 +0000)]
Updating version number to 1.2.3-pre

16 years agoTagging the 1.2.2 release.
John Resig [Mon, 14 Jan 2008 22:56:07 +0000 (22:56 +0000)]
Tagging the 1.2.2 release.

16 years agoChanging end of line from CRLF to just LF like the rest of the source files.
David Serduke [Mon, 14 Jan 2008 22:30:48 +0000 (22:30 +0000)]
Changing end of line from CRLF to just LF like the rest of the source files.

16 years agoDiscontinued the test for $(form.elements).
John Resig [Mon, 14 Jan 2008 20:40:05 +0000 (20:40 +0000)]
Discontinued the test for $(form.elements).

16 years agoExcluded a couple Ajax tests from running locally.
John Resig [Mon, 14 Jan 2008 20:17:21 +0000 (20:17 +0000)]
Excluded a couple Ajax tests from running locally.

16 years agoAdded support for breaking in an object loop (Bug #2111).
John Resig [Mon, 14 Jan 2008 20:06:34 +0000 (20:06 +0000)]
Added support for breaking in an object loop (Bug #2111).

16 years agoAnd the rest of the _default change.
John Resig [Mon, 14 Jan 2008 19:37:31 +0000 (19:37 +0000)]
And the rest of the _default change.

16 years agoTweaked the default Accept header to _default.
John Resig [Mon, 14 Jan 2008 19:37:05 +0000 (19:37 +0000)]
Tweaked the default Accept header to _default.

16 years agoAdded a check to make sure that .style exists before trying to access it (Bug #2105).
John Resig [Mon, 14 Jan 2008 19:17:35 +0000 (19:17 +0000)]
Added a check to make sure that .style exists before trying to access it (Bug #2105).

16 years agoFixed default property name for Opera (bug #2159).
John Resig [Mon, 14 Jan 2008 19:15:27 +0000 (19:15 +0000)]
Fixed default property name for Opera (bug #2159).

16 years agoFixed minor issue with pack build script. (Bug #2101)
John Resig [Mon, 14 Jan 2008 19:13:46 +0000 (19:13 +0000)]
Fixed minor issue with pack build script. (Bug #2101)

16 years agoAdding browser UA tests
Brandon Aaron [Mon, 14 Jan 2008 18:47:21 +0000 (18:47 +0000)]
Adding browser UA tests

16 years agoAdded a fix for bug #2140. Opera doesn't like concating null or undefined values.
John Resig [Mon, 14 Jan 2008 18:46:44 +0000 (18:46 +0000)]
Added a fix for bug #2140. Opera doesn't like concating null or undefined values.

16 years agoJust added support for Accept headers in Ajax requests - defaults to the correct...
John Resig [Mon, 14 Jan 2008 18:19:28 +0000 (18:19 +0000)]
Just added support for Accept headers in Ajax requests - defaults to the correct header depending on the type of request that's being performmed. (Bug #1986)

16 years agoreverted change for #2114
Jörn Zaefferer [Mon, 14 Jan 2008 09:42:53 +0000 (09:42 +0000)]
reverted change for #2114

16 years agofix for #2114; refactored tests for bind() to highlight failing select-change-test
Jörn Zaefferer [Mon, 14 Jan 2008 09:33:08 +0000 (09:33 +0000)]
fix for #2114; refactored tests for bind() to highlight failing select-change-test

16 years agoTweaked comment for isFunction.
John Resig [Sat, 12 Jan 2008 23:03:39 +0000 (23:03 +0000)]
Tweaked comment for isFunction.

16 years agoFixed an edge case in show() where the css says the display should be none. In that...
David Serduke [Sat, 12 Jan 2008 01:06:37 +0000 (01:06 +0000)]
Fixed an edge case in show() where the css says the display should be none.  In that case force 'block' so it will actually show.

16 years agoAdds support for username and password to $.ajax
Yehuda Katz [Mon, 7 Jan 2008 01:03:31 +0000 (01:03 +0000)]
Adds support for username and password to $.ajax

16 years agoTest for #2114
Jörn Zaefferer [Fri, 4 Jan 2008 11:33:34 +0000 (11:33 +0000)]
Test for #2114

16 years agoFixes bug with charCode, bad 'var' and missing semicolon
Yehuda Katz [Fri, 28 Dec 2007 19:08:36 +0000 (19:08 +0000)]
Fixes bug with charCode, bad 'var' and missing semicolon

16 years agoFixed #2084 by added embed to the list of elements where it is ok to have self closin...
David Serduke [Fri, 21 Dec 2007 05:47:33 +0000 (05:47 +0000)]
Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.

16 years agoFixed memory leak in IE with non-native event types
Brandon Aaron [Fri, 21 Dec 2007 04:53:33 +0000 (04:53 +0000)]
Fixed memory leak in IE with non-native event types

16 years agoRemoved check to prevent event from being fixed twice. Unfortunately, in IE this...
Brandon Aaron [Fri, 21 Dec 2007 02:11:26 +0000 (02:11 +0000)]
Removed check to prevent event from being fixed twice. Unfortunately, in IE this is sometimes necessary with its global event object. Binding both a mousedown and mousemove event is an example.

16 years agoFixed a couple problems found in the test suite. First, IE doesn't like it when...
David Serduke [Thu, 20 Dec 2007 20:40:20 +0000 (20:40 +0000)]
Fixed a couple problems found in the test suite.  First, IE doesn't like it when text nodes were trying to duplicate their events in clone, so don't do text nodes (that shouldn't have events anyway).  Also the fx module was freezing from a recent update that wasn't quite finished.

16 years agoFixing #2081
Brandon Aaron [Thu, 20 Dec 2007 19:31:02 +0000 (19:31 +0000)]
Fixing #2081

16 years agoRemoved a unit test that tested to see if queued objects were of a certain type....
David Serduke [Thu, 20 Dec 2007 19:21:56 +0000 (19:21 +0000)]
Removed a unit test that tested to see if queued objects were of a certain type.  It was decided you can queue anything and it is up to the coder to make sure it was intended.

16 years agoFixed #2080 by removing the check for nodeType != 1. It was put in to limit the...
David Serduke [Thu, 20 Dec 2007 18:55:43 +0000 (18:55 +0000)]
Fixed #2080 by removing the check for nodeType != 1.  It was put in to limit the queuing to just dom objects (ie not text nodes and comment nodes), but the queuing functionality is being used more broadly than I realized so the check is now removed.

16 years agoFixed lite version of jQuery.
John Resig [Thu, 20 Dec 2007 15:11:07 +0000 (15:11 +0000)]
Fixed lite version of jQuery.

16 years agoTagging the 1.2.2b2 release.
John Resig [Thu, 20 Dec 2007 15:07:37 +0000 (15:07 +0000)]
Tagging the 1.2.2b2 release.

16 years agoFixed #2027 - make sure that cloned elements (within appendTo, etc.) have their event...
John Resig [Thu, 20 Dec 2007 13:36:56 +0000 (13:36 +0000)]
Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.

16 years agoFixed a problem in the unit tests for IE where an optimization made the test case...
David Serduke [Thu, 20 Dec 2007 07:39:35 +0000 (07:39 +0000)]
Fixed a problem in the unit tests for IE where an optimization made the test case not work.  The optimization was fine.  It was the unit test that was taking a short cut which caused it to fail after the optimization went in.

16 years agoChanged the $(document).ready() code to try and solve some problems in Safari, Opera...
David Serduke [Thu, 20 Dec 2007 06:00:01 +0000 (06:00 +0000)]
Changed the $(document).ready() code to try and solve some problems in Safari, Opera, and IE.

16 years agoadded version to all builds; changed current version to 1.2.2-pre - to be updated...
Jörn Zaefferer [Wed, 19 Dec 2007 22:26:05 +0000 (22:26 +0000)]
added version to all builds; changed current version to 1.2.2-pre - to be updated after each release so its clear that a build is from which milestone; build.xml cleanup (removing uselss lite, docs, test and _with_plguins targets); deleted useless docs build files (replaced by wiki and wiki xml exporter and api browsers)

16 years agooffset: make sure there is a parent node to work on while calculating scroll offsets...
Brandon Aaron [Wed, 19 Dec 2007 19:07:12 +0000 (19:07 +0000)]
offset: make sure there is a parent node to work on while calculating scroll offsets (#2073)

16 years agooffset: make sure border width always gets calculated in pixels
Brandon Aaron [Wed, 19 Dec 2007 19:05:34 +0000 (19:05 +0000)]
offset: make sure border width always gets calculated in pixels

16 years agoFixed #2077 by adding a var to make it a local variable instead of initializing a...
David Serduke [Wed, 19 Dec 2007 18:47:01 +0000 (18:47 +0000)]
Fixed #2077 by adding a var to make it a local variable instead of initializing a global one.

16 years agoShort-circuit jQuery.event.fix if it has already fixed the current event object.
Brandon Aaron [Wed, 19 Dec 2007 18:35:58 +0000 (18:35 +0000)]
Short-circuit jQuery.event.fix if it has already fixed the current event object.

16 years agoInsure width/height do not return a negative number.
Brandon Aaron [Wed, 19 Dec 2007 18:23:46 +0000 (18:23 +0000)]
Insure width/height do not return a negative number.

16 years agoSecond part of the fix for #2071. An empty string "" was being sent to .bind() and...
David Serduke [Wed, 19 Dec 2007 01:48:05 +0000 (01:48 +0000)]
Second part of the fix for #2071.  An empty string "" was being sent to .bind() and when the events were being cleared it went in to an infinite recursive loop till memory was out.  The test was !types in the function and changing it to types == undefined fixed the error.

16 years agoChanged CRLF end of lines to just LF. Other than that there were no changes in this...
David Serduke [Wed, 19 Dec 2007 01:10:20 +0000 (01:10 +0000)]
Changed CRLF end of lines to just LF.  Other than that there were no changes in this commit.  Try svn diff -x --ignore-eol-style -r 4224:4225 to see that.

16 years agoFixed #2076 where .val() could return an array instead of undefined when the jquery...
David Serduke [Tue, 18 Dec 2007 17:19:33 +0000 (17:19 +0000)]
Fixed #2076 where .val() could return an array instead of undefined when the jquery object was empty.  The bug was created during the .val() refactoring for the javascript strict FF ticket.

16 years agowidth and height methods are now working properly
Brandon Aaron [Tue, 18 Dec 2007 03:53:09 +0000 (03:53 +0000)]
width and height methods are now working properly

16 years agoFixed #1887 - trigger fails if extra is not a function
Richard Worth [Tue, 18 Dec 2007 03:13:39 +0000 (03:13 +0000)]
Fixed #1887 - trigger fails if extra is not a function

16 years agoFixed #2070 by adding a test for !nodeType to isArrayLike so DOM elements like SELECT...
David Serduke [Mon, 17 Dec 2007 21:02:05 +0000 (21:02 +0000)]
Fixed #2070 by adding a test for !nodeType to isArrayLike so DOM elements like SELECT are not considered array-like (even though they really are).

16 years agoFixed #2069. The ready helper and shortcuts act the same. You can also still bind...
Brandon Aaron [Mon, 17 Dec 2007 20:22:53 +0000 (20:22 +0000)]
Fixed #2069. The ready helper and shortcuts act the same. You can also still bind, unbind and trigger the ready event on the document element but doing so follows the events API unlike the ready helper method.

16 years agotest for #2070
Jörn Zaefferer [Mon, 17 Dec 2007 19:01:25 +0000 (19:01 +0000)]
test for #2070

16 years agoTest for #2069
Jörn Zaefferer [Mon, 17 Dec 2007 17:39:50 +0000 (17:39 +0000)]
Test for #2069

16 years agoFixed #2062 by adding a check to see if the selector is array-like in .not() before...
David Serduke [Mon, 17 Dec 2007 16:54:44 +0000 (16:54 +0000)]
Fixed #2062 by adding a check to see if the selector is array-like in .not() before testing it as an array.  Otherwise it does a straight comparison during the filter test.

16 years agoFixed #2064
Brandon Aaron [Mon, 17 Dec 2007 14:37:26 +0000 (14:37 +0000)]
Fixed #2064

16 years agoTagging the 1.2.2b release.
John Resig [Mon, 17 Dec 2007 02:28:37 +0000 (02:28 +0000)]
Tagging the 1.2.2b release.

16 years agoFixed #2037 where Opera would mis-state the value of 'display' after an innerHTML...
David Serduke [Mon, 17 Dec 2007 01:58:05 +0000 (01:58 +0000)]
Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases.

16 years agoUpdating changlog
Brandon Aaron [Mon, 17 Dec 2007 01:11:02 +0000 (01:11 +0000)]
Updating changlog

16 years agoAdded code to remove the script tag on successful jsonp calls.
David Serduke [Mon, 17 Dec 2007 00:51:59 +0000 (00:51 +0000)]
Added code to remove the script tag on successful jsonp calls.

16 years agoThe extra & was getting gobbled, oops.
John Resig [Mon, 17 Dec 2007 00:48:12 +0000 (00:48 +0000)]
The extra & was getting gobbled, oops.

16 years agoAdded a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callb...
John Resig [Mon, 17 Dec 2007 00:44:00 +0000 (00:44 +0000)]
Added a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callback" instead.