jeresig [Tue, 12 Jan 2010 21:50:59 +0000 (16:50 -0500)]
Make sure oldAbort is only called if the xhr object still exists.
jeresig [Tue, 12 Jan 2010 16:06:40 +0000 (11:06 -0500)]
Updating the source version to 1.4.
jeresig [Tue, 12 Jan 2010 16:06:32 +0000 (11:06 -0500)]
Tagging the 1.4rc1 release.
jeresig [Tue, 12 Jan 2010 15:59:50 +0000 (10:59 -0500)]
Simplified some of the logic for handling the ajax aborts, making sure that ajaxStop isn't called twice.
jeresig [Tue, 12 Jan 2010 15:47:00 +0000 (10:47 -0500)]
ajaxStop was getting called too many times, separated some of the logic into the abort method itself.
jeresig [Tue, 12 Jan 2010 15:33:04 +0000 (10:33 -0500)]
Accidentally removed the init from the Makefile selector build.
jeresig [Tue, 12 Jan 2010 15:31:51 +0000 (10:31 -0500)]
Make sure that Opera fires events after an aborted Ajax attempt. Fixes #5787.
jeresig [Tue, 12 Jan 2010 04:55:02 +0000 (23:55 -0500)]
Bringing some selector tests back from Sizzle.
jeresig [Tue, 12 Jan 2010 04:32:33 +0000 (23:32 -0500)]
Merge branch 'master' of github.com:jquery/jquery
jeresig [Tue, 12 Jan 2010 04:32:11 +0000 (23:32 -0500)]
Some more touching up of the replaceWith tests.
Paul Irish [Tue, 12 Jan 2010 03:32:06 +0000 (11:32 +0800)]
browser version detection revised for opera >= 10, which was reporting itself as 9.8 due to their new policy
Paul Irish [Tue, 12 Jan 2010 02:30:02 +0000 (10:30 +0800)]
adding extra useragents from trac tickets. correcting opera version
Neeraj Singh [Wed, 6 Jan 2010 19:23:39 +0000 (03:23 +0800)]
fixed typo in comments
jeresig [Mon, 11 Jan 2010 22:29:48 +0000 (17:29 -0500)]
Did some reorganizing of the recently added replaceWith tests.
jeresig [Mon, 11 Jan 2010 21:43:21 +0000 (16:43 -0500)]
Make sure we do the malformed JSON check for all both JSON.parse and new Function (this helps to create uniformity between browser implementations of JSON.parse - like where Chrome allows some malformed strings. Thanks to DBJDBJ for the heads-up.
jeresig [Mon, 11 Jan 2010 21:31:31 +0000 (16:31 -0500)]
Make sure that wrapInner works on elements that have no contents. Fixes #3552.
jeresig [Mon, 11 Jan 2010 21:25:01 +0000 (16:25 -0500)]
Final pass at fixing #5785. Need to make sure that inner-nodes are detached before the remove() occurs (and it should still occur, the nodes are being obliterated.
jeresig [Mon, 11 Jan 2010 21:08:39 +0000 (16:08 -0500)]
Made some additional tests for #5785.
jeresig [Mon, 11 Jan 2010 20:57:45 +0000 (15:57 -0500)]
Make sure we use detach instead of remove in replaceWith. Fixes #5785.
jeresig [Mon, 11 Jan 2010 18:48:40 +0000 (13:48 -0500)]
Revert "Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code."
This reverts commit
e9d5947b4abbc052046585227892da0adcd56caf.
jeresig [Mon, 11 Jan 2010 17:26:28 +0000 (12:26 -0500)]
Make sure that submit event is still bound for regular form submit events. Thanks to Mark Gibson for the fix suggestion.
jeresig [Thu, 7 Jan 2010 19:26:06 +0000 (14:26 -0500)]
Merge branch 'setterargs'
jeresig [Thu, 7 Jan 2010 19:08:32 +0000 (14:08 -0500)]
Re-ordering the args to setOffset() in case people were relying upon the old order (doubtful).
jeresig [Thu, 7 Jan 2010 19:07:21 +0000 (14:07 -0500)]
Added in support for .offset(Function).
jeresig [Thu, 7 Jan 2010 18:52:20 +0000 (13:52 -0500)]
Add .css(Function) incoming value tests.
jeresig [Thu, 7 Jan 2010 18:44:53 +0000 (13:44 -0500)]
No need for the try/finally logic in the css tests, won't even work as expected.
jeresig [Thu, 7 Jan 2010 18:34:16 +0000 (13:34 -0500)]
Added manipulation tests for setter function args.
jeresig [Thu, 7 Jan 2010 18:33:30 +0000 (13:33 -0500)]
Make sure that .html(Function) gets the correct previous value.
jeresig [Thu, 7 Jan 2010 17:25:50 +0000 (12:25 -0500)]
Make sure the exception has some level of parity with the error from json2.js.
jeresig [Thu, 7 Jan 2010 17:21:58 +0000 (12:21 -0500)]
Make sure that a parsererror is thrown whenever malformed JSON comes back from a server (so that the Ajax error handler is called). Makes it uniform across browsers that do and don't have JSON.parse support.
jeresig [Thu, 7 Jan 2010 16:54:26 +0000 (11:54 -0500)]
Back out the try/catch logic from around JSON.parse. We should always try to use it, otherwise security will suffer.
jeresig [Thu, 7 Jan 2010 16:51:48 +0000 (11:51 -0500)]
Added some .text(Function) tests.
jeresig [Thu, 7 Jan 2010 16:15:40 +0000 (11:15 -0500)]
Added tests for attribute function setters.
jeresig [Thu, 7 Jan 2010 16:14:56 +0000 (11:14 -0500)]
Removed .removeAttr(Function), it didn't really make sense.
jeresig [Thu, 7 Jan 2010 16:04:21 +0000 (11:04 -0500)]
Make sure the state is passed in to the toggleClass attribute function.
jeresig [Thu, 7 Jan 2010 15:00:55 +0000 (10:00 -0500)]
There's enough logic going on in jQuery.ajaxSettings.xhr to warrant splitting the function based upon the functionality.
jeresig [Thu, 7 Jan 2010 14:55:15 +0000 (09:55 -0500)]
Moved the val() tests from manipulation into attributes.
jeresig [Thu, 7 Jan 2010 14:53:16 +0000 (09:53 -0500)]
Fixed some bugs relating to the setter arg change in val and html. Also optimized the code in val a bit.
jeresig [Wed, 6 Jan 2010 20:23:30 +0000 (15:23 -0500)]
Fixing some bugs in the re-tooling of toggleClass, adding in some performance optimizations.
jeresig [Wed, 6 Jan 2010 20:08:07 +0000 (15:08 -0500)]
A first pass at making sure that all the setter function arguments receive the index of the element and a relevant value to work with. Fixes #5763.
jeresig [Wed, 6 Jan 2010 17:13:56 +0000 (12:13 -0500)]
Add some abort() Ajax tests. Verifies that #3984 works.
jeresig [Wed, 6 Jan 2010 16:32:39 +0000 (11:32 -0500)]
Merge branch 'master' of github.com:jquery/jquery
jeresig [Wed, 6 Jan 2010 16:32:29 +0000 (11:32 -0500)]
Adding in backwards-compatiblity support for jQuery().bind/unbind/trigger - and immediately deprecating it. Please explicitly use jQuery(document) in your code.
Filipe Fortes [Mon, 4 Jan 2010 21:25:14 +0000 (05:25 +0800)]
Make sure to do a deep copy on arrays. #5750
jeresig [Wed, 6 Jan 2010 15:19:38 +0000 (10:19 -0500)]
Added in support for content-type sniffing for scripts. Fixes #5718.
Rick Waldron [Wed, 6 Jan 2010 00:48:16 +0000 (19:48 -0500)]
Detect JSON Ajax requests by the response content-type (like is done with XML). Fixes #5709.
jeresig [Wed, 6 Jan 2010 00:18:39 +0000 (19:18 -0500)]
Merging in jQuery.proxy() branch.
jeresig [Wed, 6 Jan 2010 00:17:28 +0000 (19:17 -0500)]
Added in a holdover jQuery.event.guid for back-compat (two plugins use it: mousewheel and a datepicker). Plugin authors should work to stop using jQuery.event.guid and jQuery.event.proxy ASAP.
jeresig [Wed, 6 Jan 2010 00:10:42 +0000 (19:10 -0500)]
Merge branch 'useragent'
jeresig [Tue, 5 Jan 2010 22:33:41 +0000 (17:33 -0500)]
Try to use the native JSON parser in all cases and fallback to the old technique otherwise. This allows us to also handle cases where the JSON parser is unable to parse JSON-like strings correctly (e.g. {foo:bar}) which is something that worked before but would stop working with the switch to the new parser.
jeresig [Tue, 5 Jan 2010 22:01:20 +0000 (17:01 -0500)]
Rewrite of jQuery.browser to become engine-centric, rather than browser-centric. Also attempt to determine the engine version in a smarter fashion, less prone to error. Finally, enhanced the test suite with 255 useragent strings from user-agent-string.info/download for testing. jQuery.browser.safari is now deprecated, use jQuery.browser.webkit instead.
jeresig [Tue, 5 Jan 2010 16:35:11 +0000 (11:35 -0500)]
Make sure that the ActiveX exception is caught if it's unable to be loaded. Fixes #2849.
jeresig [Tue, 5 Jan 2010 15:57:30 +0000 (10:57 -0500)]
Try to use XMLHttpRequest in more cases in IE 7. Thanks to Matt Kruse and Sam Collett for the suggestions. Fixes #3623, #2849, #5338, and #5529.
John Resig [Mon, 4 Jan 2010 01:04:24 +0000 (20:04 -0500)]
Update the copyright from 2009 to 2010.
jeresig [Sun, 3 Jan 2010 17:54:41 +0000 (12:54 -0500)]
Oops, Rakefile was generating the wrong file.
jeresig [Thu, 31 Dec 2009 20:17:52 +0000 (15:17 -0500)]
Added in jQuery.proxy(obj, name), like the method described in Secrets of the JavaScript Ninja and in Dojo's Hitch, and added in some unit tests.
jeresig [Thu, 31 Dec 2009 20:06:45 +0000 (15:06 -0500)]
Moved jQuery.proxy() into core.
jeresig [Thu, 31 Dec 2009 19:49:01 +0000 (14:49 -0500)]
Merge branch 'bug-5735'
jeresig [Thu, 31 Dec 2009 14:59:16 +0000 (09:59 -0500)]
Allow the Makefile to be more resiliant to broken builds and handle redirecting the output better in more shells. Thanks to 'candlerb' on jquery-dev for the suggestion.
jeresig [Thu, 31 Dec 2009 14:50:49 +0000 (09:50 -0500)]
Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
jeresig [Thu, 31 Dec 2009 05:49:53 +0000 (00:49 -0500)]
When .bind('unload') was called it accidentally went recursive, from
1bac61655b6c323ab4bcfc65b0d95c1587dd8503. Fixes #5688.
jeresig [Thu, 31 Dec 2009 05:37:23 +0000 (00:37 -0500)]
Remove the .bind(name, fn, thisObject) and promote jQuery.event.proxy() to jQuery.proxy() as alternative to handling scoping on callbacks. Fixes #5736.
jeresig [Thu, 31 Dec 2009 04:53:06 +0000 (23:53 -0500)]
Experiment switching to using onreadystatechange rather than a setInterval for Ajax requests. Fixes #5735.
jeresig [Tue, 22 Dec 2009 20:46:54 +0000 (15:46 -0500)]
Make a feature detect for the attribute selected code. Fixes #5702.
jeresig [Tue, 22 Dec 2009 20:06:27 +0000 (15:06 -0500)]
The option isn't, necessarily, hidden when this occurs.
jeresig [Tue, 22 Dec 2009 20:02:52 +0000 (15:02 -0500)]
Make sure that selected works in Safari on options in optgroups. Fixes #5701.
jeresig [Tue, 22 Dec 2009 18:53:04 +0000 (13:53 -0500)]
Merge branch 'master' of github.com:jquery/jquery
jeresig [Tue, 22 Dec 2009 18:28:46 +0000 (13:28 -0500)]
Forgot to make sure that oldData actually had data in it before the copy attempt.
Ben Alman [Tue, 22 Dec 2009 13:09:56 +0000 (21:09 +0800)]
Moved jQuery.param "traditional" flag into jQuery.ajaxSettings, can now be overridden via 2nd argument to jQuery.param
jeresig [Tue, 22 Dec 2009 17:04:17 +0000 (12:04 -0500)]
Explicitly re-bind the events on clone. Copying over the data isn't enough. Fixes #5681.
jeresig [Tue, 22 Dec 2009 16:54:54 +0000 (11:54 -0500)]
Add some extra tests to make sure we can get the value of hyphenated CSS properties, for #3732.
jeresig [Tue, 22 Dec 2009 07:03:41 +0000 (02:03 -0500)]
The logic for specified option values was already handled by .val(), removed the unnecessary code.
jeresig [Tue, 22 Dec 2009 07:00:46 +0000 (02:00 -0500)]
Make sure that the correct value is being pulled from checkboxes in Webkit. Fixes #5699.
jeresig [Tue, 22 Dec 2009 06:28:37 +0000 (01:28 -0500)]
Make sure that the correct value is retreived for options that have no value specified, in IE 6. Continues to fix #5697.
jeresig [Tue, 22 Dec 2009 06:18:49 +0000 (01:18 -0500)]
Made sure that the .val() logic for setting radios and checkboxes was correct. Fixes #5698.
jeresig [Tue, 22 Dec 2009 05:24:23 +0000 (00:24 -0500)]
Fixed the issue where getting an empty value was impossible. Fixes #5697.
jeresig [Tue, 22 Dec 2009 04:23:03 +0000 (23:23 -0500)]
Updated the README to reference the Closure Compiler instead of YUI Min. Thanks for the heads-up @_carumba.
jeresig [Tue, 22 Dec 2009 01:19:49 +0000 (20:19 -0500)]
jeresig [Tue, 22 Dec 2009 01:13:16 +0000 (20:13 -0500)]
Standardize on using double-quotes for string literals.
jeresig [Tue, 22 Dec 2009 00:58:13 +0000 (19:58 -0500)]
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
jeresig [Mon, 21 Dec 2009 23:06:23 +0000 (18:06 -0500)]
Tweaked the syntax of withinElement a bit.
jeresig [Mon, 21 Dec 2009 23:02:02 +0000 (18:02 -0500)]
Tweaked a couple cases where == was used instead of ===.
Alexander Farkas [Mon, 21 Dec 2009 21:24:03 +0000 (16:24 -0500)]
Make sure that the beforeactivate event isn't accidentally prevented.
Jörn Zaefferer [Mon, 21 Dec 2009 21:10:21 +0000 (16:10 -0500)]
Stop trying to emulate the focus/blur event in IE, doesn't work as one might expect, anyway. Instead, implement the focusin/focusout events in all other browsers - which creates a much better parity across all browsers. Uses event capturing instead of bubbling to make it happen. Thanks to Alexander for the recommendation and to Joern Zaefferer for the original focus/blur delegation code.
Alexander Farkas [Mon, 21 Dec 2009 20:32:32 +0000 (15:32 -0500)]
Used the patch from Alexander as the basis for a rewrite of the IE change event logic. Now has full parity with the regular change event in other browsers: Works with regular bind, works better with multiple selects, works as a regular change event (note test suite changes), works with readonly/disabled inputs, and much more. The original patch had a number of problems, including firing the change event too many times, not bubblinb properly, and not handling clicks on multi-selects properly - that should all be fixed now. Thanks Alexander for the patch pushing in the right direction.
jeresig [Mon, 21 Dec 2009 17:54:39 +0000 (12:54 -0500)]
Make sure we use instead of in the delegate test.
jeresig [Mon, 21 Dec 2009 16:11:03 +0000 (11:11 -0500)]
Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459.
John Resig [Sat, 19 Dec 2009 22:50:56 +0000 (17:50 -0500)]
Bringing Sizzle test suite changes back in.
jeresig [Sat, 19 Dec 2009 03:35:02 +0000 (22:35 -0500)]
Make sure that we don't bind the onunload event in Opera.
jeresig [Sat, 19 Dec 2009 02:23:26 +0000 (21:23 -0500)]
Switched from using YUI Compressor to Google Compiler. Minified and Gzipped filesize reduced to 22,839 bytes from 26,169 bytes (13% decrease in filesize). Sizzle copyright was merged into the main header (since it's removed automatically). Still passes all unit tests.
jeresig [Sat, 19 Dec 2009 01:29:22 +0000 (20:29 -0500)]
No need to use the conditional comment for binding the onunload event in IE.
jeresig [Sat, 19 Dec 2009 00:58:15 +0000 (19:58 -0500)]
Updating the source version to 1.4b1pre.
jeresig [Sat, 19 Dec 2009 00:58:11 +0000 (19:58 -0500)]
Tagging the 1.4a2 release.
jeresig [Sat, 19 Dec 2009 00:50:24 +0000 (19:50 -0500)]
Updating the source version to 1.4b1pre.
jeresig [Sat, 19 Dec 2009 00:50:20 +0000 (19:50 -0500)]
Tagging the 1.4a2 release.
jeresig [Sat, 19 Dec 2009 00:47:53 +0000 (19:47 -0500)]
Move the test results list above the test HTML to avoid test suite layout weirdness.
jeresig [Sat, 19 Dec 2009 00:43:04 +0000 (19:43 -0500)]
The constructor check for isPlainObject was redundant, everything still passes without it.
jeresig [Sat, 19 Dec 2009 00:36:35 +0000 (19:36 -0500)]
Added additional checks for DOM nodes and window to isPlainObject, IE 8 was still letting those pass through. Fixes #5669.
jeresig [Sat, 19 Dec 2009 00:24:19 +0000 (19:24 -0500)]
Temporarily disabling test for bug #4299.
jeresig [Fri, 18 Dec 2009 17:43:35 +0000 (12:43 -0500)]
Fixed the spacing from the last commit.