jquery.git
15 years agojquery event: closes #5250. bind(), unbind() and one() support Object Literals (needs...
Ariel Flesler [Wed, 16 Sep 2009 02:19:18 +0000 (02:19 +0000)]
jquery event: closes #5250. bind(), unbind() and one() support Object Literals (needs some refactor though)

15 years agodata should not add expando unless actually adding data
Brandon Aaron [Tue, 15 Sep 2009 21:14:08 +0000 (21:14 +0000)]
data should not add expando unless actually adding data

15 years agoMissing a var on a for loop, caused a variable to be leaked.
John Resig [Tue, 15 Sep 2009 21:09:46 +0000 (21:09 +0000)]
Missing a var on a for loop, caused a variable to be leaked.

15 years agoMissing a var on a for loop, caused a variable to be leaked.
John Resig [Tue, 15 Sep 2009 21:01:00 +0000 (21:01 +0000)]
Missing a var on a for loop, caused a variable to be leaked.

15 years agooffset is now a setter
Brandon Aaron [Tue, 15 Sep 2009 19:15:04 +0000 (19:15 +0000)]
offset is now a setter

15 years agoremove globals in tests for compability with ?noglobals, to be enabled by default
Jörn Zaefferer [Tue, 15 Sep 2009 17:51:38 +0000 (17:51 +0000)]
remove globals in tests for compability with ?noglobals, to be enabled by default

15 years agofixed global variables introduced in for loop with missing var-keyword (detected...
Jörn Zaefferer [Tue, 15 Sep 2009 17:39:21 +0000 (17:39 +0000)]
fixed global variables introduced in for loop with missing var-keyword (detected via QUnit's no ?noglobals)

15 years agojquery attributes: closes #5234. attr() supports jQuery.fn methods.
Ariel Flesler [Tue, 15 Sep 2009 17:23:26 +0000 (17:23 +0000)]
jquery attributes: closes #5234. attr() supports jQuery.fn methods.

15 years agotestrunner: focus & blur events could fail if the window isn't focused
Ariel Flesler [Tue, 15 Sep 2009 17:11:15 +0000 (17:11 +0000)]
testrunner: focus & blur events could fail if the window isn't focused

15 years agoAdding some fixes for commit [6537]. If there's leading whitespace, or if an exceptio...
John Resig [Tue, 15 Sep 2009 16:46:15 +0000 (16:46 +0000)]
Adding some fixes for commit [6537]. If there's leading whitespace, or if an exception is thrown by innerHTML, we need to use the old style method.

15 years agojquery ajax: addition for #2452. Wasn't working correctly in some cases.
Ariel Flesler [Tue, 15 Sep 2009 16:45:37 +0000 (16:45 +0000)]
jquery ajax: addition for #2452. Wasn't working correctly in some cases.

15 years agoFix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer...
John Resig [Tue, 15 Sep 2009 15:56:18 +0000 (15:56 +0000)]
Fix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer (cleanData wasn't handling malformed NodeList results correctly).

15 years agojquery ajax: closes #2452. get() and post() weren't shifting all arguments correctly.
Ariel Flesler [Tue, 15 Sep 2009 15:28:28 +0000 (15:28 +0000)]
jquery ajax: closes #2452. get() and post() weren't shifting all arguments correctly.

15 years agojquery ajax: closes #4994. Adding 'context' setting to $.ajax
Ariel Flesler [Tue, 15 Sep 2009 15:19:58 +0000 (15:19 +0000)]
jquery ajax: closes #4994. Adding 'context' setting to $.ajax

15 years agoavoid creating a new data cache if we don't need one. Also, short-circuit the case...
Yehuda Katz [Tue, 15 Sep 2009 07:59:53 +0000 (07:59 +0000)]
avoid creating a new data cache if we don't need one. Also, short-circuit the case where $.data is used to get the cache id

15 years agojquery data: adding missing semicolons
Ariel Flesler [Tue, 15 Sep 2009 01:02:18 +0000 (01:02 +0000)]
jquery data: adding missing semicolons

15 years agoMake jQuery.winnow a local function
Yehuda Katz [Tue, 15 Sep 2009 00:35:35 +0000 (00:35 +0000)]
Make jQuery.winnow a local function

15 years agojquery fx: closes #2542. show/hide(0, fn) wasn't calling the callback.
Ariel Flesler [Tue, 15 Sep 2009 00:32:13 +0000 (00:32 +0000)]
jquery fx: closes #2542. show/hide(0, fn) wasn't calling the callback.

15 years agotestrunner: resetting the scroll position after focusing a field
Ariel Flesler [Mon, 14 Sep 2009 23:28:21 +0000 (23:28 +0000)]
testrunner: resetting the scroll position after focusing a field

15 years agoAnother fix for [6537] - make sure that .innerHTML isn't used on non-HTML documents...
John Resig [Mon, 14 Sep 2009 23:20:23 +0000 (23:20 +0000)]
Another fix for [6537] - make sure that .innerHTML isn't used on non-HTML documents and that we only attempt to use .innerHTML on DOM Elements.

15 years agoFixed a bug introduced in SVN rev [6537] that caused XML-based fragment creation...
John Resig [Mon, 14 Sep 2009 23:12:06 +0000 (23:12 +0000)]
Fixed a bug introduced in SVN rev [6537] that caused XML-based fragment creation to fail, in IE.

15 years agojquery event: misc removal
Ariel Flesler [Mon, 14 Sep 2009 22:58:20 +0000 (22:58 +0000)]
jquery event: misc removal

15 years agojquery data: closes #5224. Exposing the expando.
Ariel Flesler [Mon, 14 Sep 2009 22:34:04 +0000 (22:34 +0000)]
jquery data: closes #5224. Exposing the expando.

15 years agoAdded support for .before(), .after(), and .replaceWith() on disconnected DOM nodes...
John Resig [Mon, 14 Sep 2009 22:09:42 +0000 (22:09 +0000)]
Added support for .before(), .after(), and .replaceWith() on disconnected DOM nodes. Fixes bug #3940.

15 years agojquery event: fixes #4989. blur and focus events now bubble and can be handled using...
Ariel Flesler [Mon, 14 Sep 2009 22:04:22 +0000 (22:04 +0000)]
jquery event: fixes #4989. blur and focus events now bubble and can be handled using live().

15 years agofix for #5198, event memory leak limited to IE only via conditional compilation
Brandon Aaron [Mon, 14 Sep 2009 21:14:15 +0000 (21:14 +0000)]
fix for #5198, event memory leak limited to IE only via conditional compilation

15 years agofix for #5017
Brandon Aaron [Mon, 14 Sep 2009 20:55:40 +0000 (20:55 +0000)]
fix for #5017

15 years agoremove and detach unit tests were not cleaning up, causing selector tests to fail
Brandon Aaron [Mon, 14 Sep 2009 20:45:58 +0000 (20:45 +0000)]
remove and detach unit tests were not cleaning up, causing selector tests to fail

15 years agojquery ajax: Misc rename
Ariel Flesler [Mon, 14 Sep 2009 19:57:49 +0000 (19:57 +0000)]
jquery ajax: Misc rename

15 years agojquery core: Fixed #5202. Fixing selector generation when a manipulation function...
Ariel Flesler [Mon, 14 Sep 2009 18:03:18 +0000 (18:03 +0000)]
jquery core: Fixed #5202. Fixing selector generation when a manipulation function receives a jQuery object.

15 years agojquery core: removing the body optimization, as it is then handled by $("TAG").
Ariel Flesler [Mon, 14 Sep 2009 17:33:15 +0000 (17:33 +0000)]
jquery core: removing the body optimization, as it is then handled by $("TAG").

15 years agojquery core: commenting the new access function.
Ariel Flesler [Fri, 11 Sep 2009 17:47:40 +0000 (17:47 +0000)]
jquery core: commenting the new access function.

15 years agojquery core: Closes #5189. Added a generic function to handle getting/setting key...
Ariel Flesler [Wed, 9 Sep 2009 21:14:28 +0000 (21:14 +0000)]
jquery core: Closes #5189. Added a generic function to handle getting/setting key-value/setting a hash.

15 years agojquery core: fixes 5187. getElementsByTagName optimization was breaking $('div')...
Ariel Flesler [Wed, 9 Sep 2009 16:50:58 +0000 (16:50 +0000)]
jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()

15 years agojquery core: closes #5186. getElementsByTagName optimization was breaking the selecto...
Ariel Flesler [Wed, 9 Sep 2009 16:33:16 +0000 (16:33 +0000)]
jquery core: closes #5186. getElementsByTagName optimization was breaking the selector attribute.

15 years agoAdded support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.
John Resig [Wed, 9 Sep 2009 00:21:21 +0000 (00:21 +0000)]
Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.

15 years agoOptimize jQuery() for the case $("TAG").
John Resig [Tue, 8 Sep 2009 04:26:47 +0000 (04:26 +0000)]
Optimize jQuery() for the case $("TAG").

15 years agoUse the native Array indexOf method if it exists, for jQuery.inArray.
John Resig [Tue, 8 Sep 2009 01:45:11 +0000 (01:45 +0000)]
Use the native Array indexOf method if it exists, for jQuery.inArray.

15 years agoRemoved jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass...
John Resig [Tue, 8 Sep 2009 01:07:50 +0000 (01:07 +0000)]
Removed jQuery.className.(has|remove|add) in favor of .addClass/removeClass/hasClass. Also rewrote the functions for additional performance.

15 years agoBroke the logic for .clean() wrap out into a separate, static, data structure. Also...
John Resig [Mon, 7 Sep 2009 20:55:36 +0000 (20:55 +0000)]
Broke the logic for .clean() wrap out into a separate, static, data structure. Also improved the performance of .html() looking for the case where .innerHTML can be used without problems. Also tweaked some cases where cleanData() was used, no need to use jQuery selectors in these cases.

15 years agoSplit out the fragment-building code from domManip. Switched core.js to using that...
John Resig [Mon, 7 Sep 2009 18:58:01 +0000 (18:58 +0000)]
Split out the fragment-building code from domManip. Switched core.js to using that instead. Also moved the standalone tag detection to $(...) for performance.

15 years agoAdded an optimization for the case where $("body") is used.
John Resig [Mon, 7 Sep 2009 17:20:38 +0000 (17:20 +0000)]
Added an optimization for the case where $("body") is used.

15 years agoAdds nested param serialization; Closes #4201 (by merbjedi)
Yehuda Katz [Wed, 2 Sep 2009 05:16:21 +0000 (05:16 +0000)]
Adds nested param serialization; Closes #4201 (by merbjedi)

15 years agoFixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the...
John Resig [Thu, 27 Aug 2009 20:07:45 +0000 (20:07 +0000)]
Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the case where documentElement is undefined (which only occurs on HTML documents in IE).

15 years agoTweaked the isXMLDoc iframe test case to test the document, not the body element...
John Resig [Thu, 27 Aug 2009 19:22:48 +0000 (19:22 +0000)]
Tweaked the isXMLDoc iframe test case to test the document, not the body element (which doesn't exist in IE). Also made the isXMLDoc code handle cases where elem is null, undefined, etc.

15 years agoIf the XHR object no longer exists assume that the request was aborted.
John Resig [Wed, 26 Aug 2009 17:39:52 +0000 (17:39 +0000)]
If the XHR object no longer exists assume that the request was aborted.

15 years agoTemporarily disabled some tests for Opera 10 - a variety of problems with input eleme...
John Resig [Wed, 26 Aug 2009 16:29:46 +0000 (16:29 +0000)]
Temporarily disabled some tests for Opera 10 - a variety of problems with input elements and selectors exist.

15 years agoMoved exposing window.jQuery and window.$ to the end of the jQuery file (helps some...
John Resig [Mon, 10 Aug 2009 21:22:31 +0000 (21:22 +0000)]
Moved exposing window.jQuery and window.$ to the end of the jQuery file (helps some compatibility cases with older version of Prototype). Fixes ticket #4834.

15 years agoAdded support for .closest(filter, DOMElement). Fixes #4072.
John Resig [Tue, 28 Jul 2009 12:28:59 +0000 (12:28 +0000)]
Added support for .closest(filter, DOMElement). Fixes #4072.

15 years agoBacking out commit #6507 - causes too many problems.
John Resig [Tue, 28 Jul 2009 12:22:10 +0000 (12:22 +0000)]
Backing out commit #6507 - causes too many problems.

15 years agoFix some missing braces in core.js.
John Resig [Mon, 27 Jul 2009 20:48:42 +0000 (20:48 +0000)]
Fix some missing braces in core.js.

15 years agoAdded an improvement to quickExpr and some more tests for jQuery('html'). Fixes ...
John Resig [Mon, 27 Jul 2009 20:47:32 +0000 (20:47 +0000)]
Added an improvement to quickExpr and some more tests for jQuery('html'). Fixes #4979.

15 years agoMake sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.
John Resig [Mon, 27 Jul 2009 19:02:40 +0000 (19:02 +0000)]
Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.

15 years agoShortened the isXMLDoc code, based upon recommendation from Andrea.
John Resig [Mon, 27 Jul 2009 13:21:19 +0000 (13:21 +0000)]
Shortened the isXMLDoc code, based upon recommendation from Andrea.

15 years agoAdded an extra documentElement check to isXMLDoc for IE - and added a number of unit...
John Resig [Mon, 27 Jul 2009 13:02:41 +0000 (13:02 +0000)]
Added an extra documentElement check to isXMLDoc for IE - and added a number of unit tests for isXMLDoc. Fixes #4833.

15 years agoImplemented support for .context limited .closest() calls. Fixes #4072.
John Resig [Sat, 25 Jul 2009 21:31:59 +0000 (21:31 +0000)]
Implemented support for .context limited .closest() calls. Fixes #4072.

15 years agoFix for animating hyphenated CSS properties. Fixes #4156.
John Resig [Sat, 25 Jul 2009 20:56:15 +0000 (20:56 +0000)]
Fix for animating hyphenated CSS properties. Fixes #4156.

15 years agoFix for #4972. Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson
Brandon Aaron [Sat, 25 Jul 2009 16:08:18 +0000 (16:08 +0000)]
Fix for #4972. Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson

15 years agorevision 6494 accidentally reverted some changes to offset module
Brandon Aaron [Sat, 25 Jul 2009 16:04:30 +0000 (16:04 +0000)]
revision 6494 accidentally reverted some changes to offset module

15 years agoadd scrollTop/Left tests and fix for IE
Brandon Aaron [Fri, 24 Jul 2009 22:32:53 +0000 (22:32 +0000)]
add scrollTop/Left tests and fix for IE

15 years agospeed: adding a benchmark() function
Ariel Flesler [Fri, 24 Jul 2009 01:50:41 +0000 (01:50 +0000)]
speed: adding a benchmark() function

15 years agospeed: misc changes to the top comment
Ariel Flesler [Fri, 24 Jul 2009 00:58:24 +0000 (00:58 +0000)]
speed: misc changes to the top comment

15 years agospeed: committing a failing experiment of concat vs slice
Ariel Flesler [Fri, 24 Jul 2009 00:57:27 +0000 (00:57 +0000)]
speed: committing a failing experiment of concat vs slice

15 years agoChanged .get(-Number) to use .slice() instead of .toArray() (which doesn't take any...
John Resig [Thu, 23 Jul 2009 22:38:29 +0000 (22:38 +0000)]
Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any arguments). Follow-up from commit [6484].

15 years agoFix for incorrect options being selected (noticed same problem with radio/checkbox...
John Resig [Thu, 23 Jul 2009 22:16:29 +0000 (22:16 +0000)]
Fix for incorrect options being selected (noticed same problem with radio/checkbox and fixed it there, as well). Fixes #4962.

15 years agoMake sure that at least one argument is provided to .slice(), in accordance with...
John Resig [Thu, 23 Jul 2009 13:22:55 +0000 (13:22 +0000)]
Make sure that at least one argument is provided to .slice(), in accordance with the spec. Fixes jQuery bug #4942.

15 years agoOptimizing isXMLDoc.
John Resig [Wed, 22 Jul 2009 17:30:17 +0000 (17:30 +0000)]
Optimizing isXMLDoc.

15 years agoSupport dynamically loaded copies of jQuery using document ready. Fixes #4889.
John Resig [Wed, 22 Jul 2009 15:03:23 +0000 (15:03 +0000)]
Support dynamically loaded copies of jQuery using document ready. Fixes #4889.

15 years agoMake sure that the script is removed only if it's actually in the page still. Fixes...
John Resig [Wed, 22 Jul 2009 14:38:21 +0000 (14:38 +0000)]
Make sure that the script is removed only if it's actually in the page still. Fixes #4934.

15 years agoCompletely disable the flaky fx queue test.
John Resig [Tue, 21 Jul 2009 20:48:29 +0000 (20:48 +0000)]
Completely disable the flaky fx queue test.

15 years agoExaggerate the times for the localtimeout ajax test.
John Resig [Tue, 21 Jul 2009 20:24:12 +0000 (20:24 +0000)]
Exaggerate the times for the localtimeout ajax test.

15 years agoRetool the fx test again, making it more apparent which order the queue tests will...
John Resig [Tue, 21 Jul 2009 20:16:44 +0000 (20:16 +0000)]
Retool the fx test again, making it more apparent which order the queue tests will complete in.

15 years agoMade a tweak to the fx queue test (was randomly failing in its current incarnation).
John Resig [Tue, 21 Jul 2009 20:06:05 +0000 (20:06 +0000)]
Made a tweak to the fx queue test (was randomly failing in its current incarnation).

15 years agoTweaked the detach addition in commit [6474].
John Resig [Tue, 21 Jul 2009 15:57:51 +0000 (15:57 +0000)]
Tweaked the detach addition in commit [6474].

15 years agoAdds detach()
Yehuda Katz [Tue, 21 Jul 2009 09:17:33 +0000 (09:17 +0000)]
Adds detach()

15 years agoMade some syntax tweaks to core.js.
John Resig [Sun, 19 Jul 2009 19:55:21 +0000 (19:55 +0000)]
Made some syntax tweaks to core.js.

15 years agoSaved some references to native methods, instead of re-referencing them on every...
John Resig [Sun, 19 Jul 2009 19:50:45 +0000 (19:50 +0000)]
Saved some references to native methods, instead of re-referencing them on every call.

15 years agoMoved some RegExp in core.js, goes toward #4111.
John Resig [Sun, 19 Jul 2009 19:47:30 +0000 (19:47 +0000)]
Moved some RegExp in core.js, goes toward #4111.

15 years agoMoved the RegExp in ajax.js out from inline, goes towards ticket #4111.
John Resig [Sun, 19 Jul 2009 19:44:15 +0000 (19:44 +0000)]
Moved the RegExp in ajax.js out from inline, goes towards ticket #4111.

15 years agoMade a number of syntax tweaks to ajax.js.
John Resig [Sun, 19 Jul 2009 19:37:11 +0000 (19:37 +0000)]
Made a number of syntax tweaks to ajax.js.

15 years agoDid some cleaning up of ajax.js and fixed a bug from commit [6457].
John Resig [Sun, 19 Jul 2009 19:03:18 +0000 (19:03 +0000)]
Did some cleaning up of ajax.js and fixed a bug from commit [6457].

15 years agoFixed a typo with commit [6457].
John Resig [Sun, 19 Jul 2009 17:02:01 +0000 (17:02 +0000)]
Fixed a typo with commit [6457].

15 years agoRemoving extraneous closing ). Fix for [6463].
John Resig [Sun, 19 Jul 2009 16:21:08 +0000 (16:21 +0000)]
Removing extraneous closing ). Fix for [6463].

15 years agoBroke out some of the inline RegExp from css.js. Goes towards fixing #4111.
John Resig [Sun, 19 Jul 2009 16:13:45 +0000 (16:13 +0000)]
Broke out some of the inline RegExp from css.js. Goes towards fixing #4111.

15 years agoFixed various formatting issues in css.js.
John Resig [Sun, 19 Jul 2009 16:08:17 +0000 (16:08 +0000)]
Fixed various formatting issues in css.js.

15 years agoMove cases of .replace(re, Function) out from inline (to avoid being redeclared on...
John Resig [Sun, 19 Jul 2009 15:57:43 +0000 (15:57 +0000)]
Move cases of .replace(re, Function) out from inline (to avoid being redeclared on every use). Fixes #4114.

15 years agoFixed typo in commit #6461.
John Resig [Sun, 19 Jul 2009 15:51:00 +0000 (15:51 +0000)]
Fixed typo in commit #6461.

15 years agoMade more formatting changes to manipulation.js. Also moved all inline RegExp into...
John Resig [Sun, 19 Jul 2009 15:48:30 +0000 (15:48 +0000)]
Made more formatting changes to manipulation.js. Also moved all inline RegExp into a top declaration.

15 years agoTweaked formatting of src/manipulation.js.
John Resig [Sun, 19 Jul 2009 15:29:03 +0000 (15:29 +0000)]
Tweaked formatting of src/manipulation.js.

15 years agoStandardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.
John Resig [Sun, 19 Jul 2009 13:32:53 +0000 (13:32 +0000)]
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.

15 years agoStandardizing on .test() and .exec() - moving away from using .match() for RegExp...
John Resig [Sun, 19 Jul 2009 13:21:51 +0000 (13:21 +0000)]
Standardizing on .test() and .exec() - moving away from using .match() for RegExp. Fixes jQuery bug #4113.

15 years agoRewrote .offsetParent() to work against the full jQuery set, added tests. Fixes ...
John Resig [Sun, 19 Jul 2009 13:04:18 +0000 (13:04 +0000)]
Rewrote .offsetParent() to work against the full jQuery set, added tests. Fixes #4922.

15 years agoMade a number of stylistic changes to the offset code (braces, declarations, etc.).
John Resig [Sun, 19 Jul 2009 12:53:39 +0000 (12:53 +0000)]
Made a number of stylistic changes to the offset code (braces, declarations, etc.).

15 years agoSwitching to use a better check for if the node is a document.
John Resig [Sat, 18 Jul 2009 19:44:15 +0000 (19:44 +0000)]
Switching to use a better check for if the node is a document.

15 years agoremoving ambiguous offset tests for now... results are different due to rendering...
Brandon Aaron [Fri, 17 Jul 2009 22:20:26 +0000 (22:20 +0000)]
removing ambiguous offset tests for now... results are different due to rendering differences but are correct for the given browser

15 years agointegrated offset tests into main test suite. offset tests now use iframes instead...
Brandon Aaron [Fri, 17 Jul 2009 22:15:37 +0000 (22:15 +0000)]
integrated offset tests into main test suite. offset tests now use iframes instead of popups

15 years agofix for #4906
Brandon Aaron [Fri, 17 Jul 2009 21:08:13 +0000 (21:08 +0000)]
fix for #4906

15 years agoAdd test for jQuery(jQueryObj) cloning and simplify new get() code
Yehuda Katz [Fri, 17 Jul 2009 17:33:44 +0000 (17:33 +0000)]
Add test for jQuery(jQueryObj) cloning and simplify new get() code

15 years agojQuery objects have a default length of 0. Simplifies $() some.
Yehuda Katz [Fri, 17 Jul 2009 01:47:26 +0000 (01:47 +0000)]
jQuery objects have a default length of 0. Simplifies $() some.

15 years agojquery core: Simplifying isEmptyObject() and adding tests.
Ariel Flesler [Thu, 16 Jul 2009 15:16:44 +0000 (15:16 +0000)]
jquery core: Simplifying isEmptyObject() and adding tests.