aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. ↵jaubourg2011-01-203-113/+97
| | | | | | | | | | | | | | | | | | | | Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added).
* | | | | Moves things around to make jsLint happier.jaubourg2011-01-191-2/+2
| | | | |
* | | | | Fixes crossDomain test so that it assumes port to be 80 for http and 443 for ↵jaubourg2011-01-191-2/+4
| | | | | | | | | | | | | | | | | | | | https when it is not provided.
* | | | | Moves determineDataType into ajaxSettings so that it is accessible to ↵jaubourg2011-01-192-51/+52
| | | | | | | | | | | | | | | | | | | | transports without the need for a second argument and so that we can now pass the original options to the transport instead. Also ensures the original options are actually propagated to prefilters (they were not).
* | | | | Re-adds hastily removed variable and simplifies statusCode based callbacks ↵jaubourg2011-01-191-15/+16
| | | | | | | | | | | | | | | | | | | | handling.
* | | | | Use undefined instead of 0 to deference transport for clarity.jaubourg2011-01-191-1/+1
| | | | |
* | | | | Removes unnecessary test and ensures getResponseHeader returns null if the ↵jaubourg2011-01-191-12/+7
| | | | | | | | | | | | | | | | | | | | header does not exist.
* | | | | Revised how context is determined and removed unnecessary "parameter as ↵jaubourg2011-01-191-12/+10
| | | | | | | | | | | | | | | | | | | | variable" trick.
* | | | | Moved ajaxSettings.xhr definition together with support.ajax and ↵jaubourg2011-01-192-161/+173
| |_|/ / |/| | | | | | | | | | | support.cors determination into ajax/xhr.js.
* | | | Remove an unused regex and optimize character escape regex usage.Anton M2011-01-191-7/+2
| | | |
* | | | Merge branch 'chrome-slice-comment' of https://github.com/ajpiano/jquery ↵John Resig2011-01-181-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | into ajpiano-chrome-slice-comment
| * | | | Fix tabs vs spaces in initial workaround commitadam j. sontag2011-01-171-1/+1
| | | | |
| * | | | shorten the SHAadam j. sontag2011-01-171-1/+1
| | | | |
| * | | | Add link to chrome issue ticketadam j. sontag2011-01-171-0/+1
| | | | |
| * | | | Add a comment to explain (and enforce the temporary-ness of) an extra line ↵adam j. sontag2011-01-171-0/+3
| | | | | | | | | | | | | | | | | | | | of code added to workaround a Chrome 10 bug
* | | | | Add another tweak for handling CSP - we need to make sure that we don't ↵John Resig2011-01-181-1/+10
| | | | | | | | | | | | | | | | | | | | trigger any eval on load (not sure if it's the best tweak, definitely not ideal). Add a test page as well so that it's easier to catch problem.
* | | | | Merge branch 'master' of https://github.com/russtacular/jquery into ↵John Resig2011-01-181-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | russtacular-master
| * | | | | jQuery.fn.offset no longer returns ClientRect object for disconnected elementsRussell Holbrook2010-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of returning box, which is a ClientRect, we take the top and left box values and place them into a generic object.
* | | | | | Merge branch 'master' of github.com:jquery/jquery into jquery-masterColin Snover2011-01-172-24/+34
|\ \ \ \ \ \
| * | | | | | Defer scriptEval test until first use to prevent Content Security Policy ↵Brandon Sterne2011-01-172-24/+34
| | |/ / / / | |/| | | | | | | | | | | | | | | | inline-script violations from occuring. Fixes #7371.
* | | | | | Merge in data_nocollide branch. Fixes #6968, improves unit testing framework ↵Colin Snover2011-01-176-98/+172
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | checks for leaky stuff.
| * | | | | Introduce a temporary hack to allow jQuery.fn.data("events") to continue to ↵Colin Snover2011-01-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | work. This will be going away in 1.6. More information will be available in the 1.5 release notes.
| * | | | | Fix jQuery.queue leaks empty queues.Colin Snover2011-01-091-0/+4
| | | | | |
| * | | | | Fix domManip leaks the first element when appending elements to multiple ↵Colin Snover2011-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | other elements.
| * | | | | Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-096-99/+162
| | | | | | | | | | | | | | | | | | | | | | | | collision between user data and internal data. Fixes #6968.
* | | | | | Merge branch '7608' of https://github.com/rwldrn/jquery into rwldrn-7608jeresig2011-01-171-4/+8
|\ \ \ \ \ \
| * | | | | | Bug #7608 elem.runtimeStyle throws exception in Operarwldrn2011-01-051-4/+8
| | | | | | |
* | | | | | | Merging pull request 183 for #7793.jeresig2011-01-171-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Simplify the check for isDefaultPrevented.Dave Methvin2010-12-241-4/+2
| | | | | | | |
| * | | | | | | When a native browser event is bubbling up the DOM, make sure that the ↵Dave Methvin2010-12-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct isDefaultPrevented value is reflected by jQuery's Event object. Fixes #7793.
* | | | | | | | Put the split to get the list of promise methods out of the promise method ↵jaubourg2011-01-161-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | itself and also switched from jQuery.each to a while loop to remove as much overhead as possible. Thanks go to scott_gonzalez for reminding me of this.
* | | | | | | | Implements joined jQuery.when statements. Makes it so calling jQuery.when ↵jaubourg2011-01-161-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with no parameter returns a resolved promise. Ensures promise method on promises supports the promise(obj) signature. Ensures a deferred and its promise always return the same promise (itself for the promise). Unit tests provided.
* | | | | | | | Setting the jsonp option to false now inhibits any url manipulation ↵jaubourg2011-01-161-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regarding the callback.
* | | | | | | | The script prefilter now forces cross-domain requests type to GET.jaubourg2011-01-161-0/+1
| | | | | | | |
* | | | | | | | Makes it so a prefilter can change the type of a request.jaubourg2011-01-161-7/+7
| | | | | | | |
* | | | | | | | Removed internal dataTypes option and added headers & crossDomain options ↵jaubourg2011-01-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into commented out options of ajaxSettings.
* | | | | | | | Fixes #2994. Not finding a transport now fires the error callbacks and ↵jaubourg2011-01-163-111/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't make ajax return false. Had to revise how jsonp and script prefilters & transports work (better separation of concerns). Also took the opportunity to revise jXHR getRequestHeader and abort methods and enabled early transport garbage collection when the request completes.
* | | | | | | | Revert "Revert fb4445070cd9e06929c7b6f27c10dbf42d4a3367 which is no longer ↵jeresig2011-01-141-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | necessary with the release of Opera 11. Fixes #7608." We will be continuing to support Opera 10.6 in jQuery 1.5. This reverts commit 012f0c3b4bd3d04c2f3e1ea80fc1230901d607d9.
* | | | | | | | Merge branch 'master' of https://github.com/scottgonzalez/jqueryjeresig2011-01-141-2/+9
|\ \ \ \ \ \ \ \
| * | | | | | | | Avoid running jQuery.unique() for methods that are guaranteed to produce a ↵Scott González2011-01-141-2/+9
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | unique result set. Fixes #7964 - Some traversal methods perform an unnecessary uniqueness check.
* | | | | | | | Fix a strange Chrome issuewycats2011-01-141-2/+3
| | | | | | | |
* | | | | | | | added jQuery.subclassJared Grippe2011-01-141-5/+26
|/ / / / / / /
* | | | | | | Moved jQuery.ajax.prefilter and jQuery.ajax.transport to ↵jaubourg2011-01-134-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | jQuery.ajaxPrefilter and jQuery.ajaxTransport so that proxying the ajax method doesn't turn into a nightmare. Thanks go to scott_gonzalez and DaveMethvin for pointing out the issue. Also made ajaxSetup return "this" to enable chainable definitions -- jQuery.ajaxSetup(...).ajaxPrefilter(...).ajaxTransport(...).
* | | | | | | Fixes #4964. Adds a statusCode object together with a new statusCode method ↵jaubourg2011-01-131-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on the jXHR object (deferred behaviour). They accept a map of statusCode/callback(s). Callbacks are fired when the status code of the response correponds to the key (as a success or an error callback depending on how the request completed). Unit tests added.
* | | | | | | Removed xhr pooling since failing cross-domain requests leaves the xhr ↵jaubourg2011-01-131-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | object in an undefined state in Firefox. Also rewrote comments related to the active xhr list so that they make sense.
* | | | | | | Reworked script and xhr abort logic to take advantage of the fact jXHR.abort ↵jaubourg2011-01-132-42/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | will complete the request itself if not done already.
* | | | | | | Cleans up statusText handling and simplifies 304 notmodified logic.jaubourg2011-01-131-13/+17
| | | | | | |
* | | | | | | Removes unnecessary variables and adds much needed comments into the data ↵jaubourg2011-01-131-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | conversion logic in ajax.
* | | | | | | Fixes a regression by calling dataFilter with the second argument set as the ↵jaubourg2011-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dataType.
* | | | | | | Gets rid of a var statement by moving variable declarations up.jaubourg2011-01-131-3/+4
| | | | | | |