Carl Fürstenberg [Thu, 17 Mar 2011 18:50:53 +0000 (19:50 +0100)]
Merge when updating submodules on make
When running make, the submodule update will remove all local changes.
Adding flag --rebase or --merge does solve the issue. rebase will
probably make it cleaner, but it might stop on conflict, thus --merge
will result in fewer (probably none).
Carl Fürstenberg [Tue, 15 Mar 2011 19:16:09 +0000 (20:16 +0100)]
Introduce submodules, closes #8536
Instead of the manual clone of sizzle and qunit, use git submodules
instead. this will ensure that all future releases can be recreated by
checking out an tag.
jaubourg [Tue, 15 Mar 2011 18:20:03 +0000 (19:20 +0100)]
Fixes #8509. Makes URL regexp less overzealous and ensures it recognizes URL schemes which do not contain a conformant hierarchical structure ( as per section 2.1.2 of http://www.ietf.org/rfc/rfc2718.txt ). Also adds about: and adobe air's app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed. Unit test added.
jaubourg [Thu, 3 Mar 2011 18:38:06 +0000 (19:38 +0100)]
Moves Deferred-related code into a separate module. Context handling has been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).
jeresig [Wed, 23 Feb 2011 18:18:44 +0000 (13:18 -0500)]
Make a new jQuery.support.noCloneChecked - splitting apart the previous feature detect relating to clone in IE, fixes the last remaining issue with IE 9 RC. Fixes #8365.
jaubourg [Fri, 18 Feb 2011 17:06:26 +0000 (18:06 +0100)]
Revert "Adds an invert method to promises that returns a "inverted" promise that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved."
Anton M [Thu, 17 Feb 2011 18:12:57 +0000 (19:12 +0100)]
Fix a some inaccuracies in the original test case for #7912.
- Use fresh div instead of one outside the test-fixture
- make sure the empty string test tests actually that (not 0% 0%)
- actually test for < -10000 (#7193)
- fixed some whitespace issues
louisremi [Thu, 17 Feb 2011 16:26:23 +0000 (17:26 +0100)]
Fixes #7912. Make sure .cur() only returns 0 as fallback value when it needs to ("", auto, undefined, null).
This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
.css() if it isn't a number, number-alike or a value that needs a fallback to 0.
This way fx.start doesn't need to be recalculated for complex values.
jaubourg [Thu, 17 Feb 2011 16:03:09 +0000 (17:03 +0100)]
Fixes #8297. Makes sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
Dave Methvin [Thu, 10 Feb 2011 02:25:29 +0000 (21:25 -0500)]
Fixes #7922. Copy the donor event when simulating a bubbling submit in IE so that we don't accidentally stop propagation on it. Remove a bunch of return statements that could also cancel the event. DRY out the liveFired change from #6359 by moving it to the trigger() function.
jaubourg [Tue, 15 Feb 2011 20:47:52 +0000 (21:47 +0100)]
Fixes #8277. Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
jaubourg [Sat, 12 Feb 2011 02:59:46 +0000 (03:59 +0100)]
Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn't be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object. Fixes #7531 in IE9RC.
jaubourg [Wed, 9 Feb 2011 16:47:33 +0000 (17:47 +0100)]
Fixes #8219. Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
Colin Snover [Tue, 8 Feb 2011 18:13:27 +0000 (12:13 -0600)]
Revert portions of 7acb141ed7f2dedd950bb65acf878098640d081e that attempt to use a function to hide jQuery metadata from JSON.stringify since this does not work reliably cross-browser (fails in Fx3.5, O11, Saf4).
Colin Snover [Mon, 7 Feb 2011 16:48:38 +0000 (10:48 -0600)]
Update $.data to use a function instead of an object when attaching to JS objects in order to hide attached metadata from JSON.stringify. Remove event.js code that was doing this before specifically for events, which is now redundant. Fixes #8108. 1.5-stable
jaubourg [Sat, 5 Feb 2011 02:08:35 +0000 (03:08 +0100)]
Fixes #8177. XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification).
jaubourg [Thu, 3 Feb 2011 17:22:37 +0000 (18:22 +0100)]
Don't use a local copy of jQuery.ajaxSettings.isLocal anymore but use the current value so that it is possible to set isLocal to true for protocols unknown to jQuery.
jaubourg [Thu, 3 Feb 2011 05:12:47 +0000 (06:12 +0100)]
Stores jQuery.ajaxSettings.isLocal locally at load time so that any change to it won't affect the transport. Fixes the url parsing regexp to deal with empty domains. Adds informative text into test/localfile.html and handles Opera's failure. Revises the way xhr are created by doing all tests at load time and normalizes all the xhr creation functions so that none of them may throw an exception.
jaubourg [Thu, 3 Feb 2011 01:53:10 +0000 (02:53 +0100)]
Fixes #8152 by applying the same special cases for protocol "chrome-extension:" as were for "file:" (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport. Also re-organizes the handling of document.location in ajax.js.
jaubourg [Wed, 2 Feb 2011 20:16:26 +0000 (21:16 +0100)]
Fixes #8146 by introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed.
jaubourg [Wed, 2 Feb 2011 19:52:26 +0000 (20:52 +0100)]
Fixes #8138. Access to document.location is made only once at load time and if it fails (throwing an exception in IE when document.domain is already set), we use the href of an A element instead.
jaubourg [Wed, 2 Feb 2011 12:33:02 +0000 (13:33 +0100)]
Fixes #8135. Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior.