Oleg Gaidarenko
a2ae215d99
Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
...
Fixes gh-2323
Closes gh-2464
2015-07-13 01:34:09 +03:00
Michał Gołębiowski
38a669735d
Ajax: Remove remnants of the load event alias handling
...
Refs 0705be4750
Refs gh-2287
Closes gh-2362
2015-06-01 19:05:54 +02:00
Oleg Gaidarenko
a117dd05f6
Ajax: remove "onunload" event handler
...
Remove hack for IE lost connections, update for it was released
by Microsoft at November 12, 2013.
See https://support.microsoft.com/en-us/kb/2905733
Ref trac-5280
Ref gh-2047
2015-05-03 13:54:17 +03:00
Michał Gołębiowski
f6de5a90dd
Core: Align branches: remove an unused variable, add comments
...
Closes gh-2233
2015-04-27 20:19:05 +02:00
Oleg Gaidarenko
a4715f4216
Ajax: remove use of jQuery#each second argument
...
Ref gh-2090
2015-02-19 11:30:59 +03:00
Oleg Gaidarenko
97ef1f2612
Ajax: replace "jqXHR.complete" callback with "always"
...
Since it was deprecated since 1.8.
Also add additional comments which explains tricky
behaviour of "always" callback
Closes gh-2033
2015-02-15 02:05:39 +03:00
Oleg Gaidarenko
4ef120d3f2
Ajax: make jQuery#load "type" field explicit
...
* Move "evalScript.php" file to appropriate place
* Make jQuery#load "type" field explicit and add test for it
Ref trac-11264
2015-02-15 02:01:59 +03:00
Oleg Gaidarenko
0ac28ed293
Ajax: simplify one ajax call and add explanatory comment
...
* Remove "async = true" from script transport since it was needed
for FF < 4 and old Opera which we do not support anymore
* Add comment to "evalUrl" method on why "type" field should be explicit
2015-02-15 02:00:38 +03:00
Richard Gibson
53aa87f3bf
Core: Standardize indexOf comparisons
...
not present: `< 0`
present: `> -1`
at index: `=== N`
Closes gh-1984
2015-01-10 23:47:01 -05:00
Michał Gołębiowski
76df9e4e38
Build: Don't assume the browser environment; smoke test on Node w/ jsdom
...
Fixes gh-1950
Closes gh-1949
2014-12-26 13:26:46 +01:00
Shivaji Varma
5a0867d1e9
Ajax: simplify jQuery.parseXML method
...
-2 bytes to the gzipped size and code looks a bit nicer
This wasn't landed to the compat branch though, since size would increase
with this cherry-pick
Closes gh-1856
2014-12-25 08:24:37 +03:00
Oleg Gaidarenko
4e7f34f629
Ajax: remove event dependency from the ajax module
...
Closes gh-1695
2014-10-14 21:24:05 +04:00
Timmy Willison
c869a1ef8a
Build: update grunt-jscs-checker and pass with the new rules
2014-07-17 10:25:59 -07:00
Dave Methvin
3a68c114e3
Ajax: .load() should trim its selector
...
Fixes #14773
2014-03-04 20:43:14 -05:00
jaubourg
01c360f963
Ajax: Protect against exceptions thrown synchronously by xhr.send
...
When xhr.send throws an exception synchronously, the onerror handler may have
been called already which, unchecked, makes the exception bubble up outside of
jQuery.ajax.
We now catch the exception pre-emptively and only rethrow if we know it hasn't
already been notified through the onerror handler.
Fixes #14683
2014-01-29 14:18:58 +01:00
Dave Methvin
b278d8174f
Revert "Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434."
...
This reverts commit 498e0e6c9b
.
We can't use the ActiveX XHR because it doesn't support events.
2013-12-15 22:02:51 -05:00
Dave Methvin
498e0e6c9b
Ajax: Fix #14424 . Use ActiveX in IE9+ on local files, close gh-1434.
...
We can't feature detect ActiveX in IE11, but we can just call
it and catch whatever error occurs, then try normal XHR.
2013-11-14 15:27:37 -05:00
Dave Methvin
dce2edb3a6
ajax: Fix #14207 . file protocol returns status 0, see #8605 .
2013-11-13 20:53:04 -05:00
Richard Gibson
71b2ac524e
Fix #14492 : More correct jQuery.parseJSON. Close gh-1419.
...
(cherry picked from commit 60a6178131
)
Conflicts:
src/ajax/parseJSON.js
2013-11-12 00:13:08 -05:00
Richard Gibson
19c1b6109a
No ticket: Update support comment to match convention
2013-11-04 12:51:57 -05:00
Richard Gibson
705216dc46
No ticket: Small ajax/xhr size optimizations
2013-10-28 17:53:39 -04:00
Richard Gibson
f9d41ac641
Fix #14379 : AJAX requests on unload
2013-10-28 17:53:31 -04:00
Oleg
cb37994d76
No ticket: fix code style inconsistencies. Closes gh-1361
2013-09-13 01:04:29 +04:00
Timmy Willison
cd4a9cd7fa
All non-var modules should not indent in their AMD wrappers (just for prettier builds). No functionality changes.
2013-09-09 12:08:00 -04:00
Timmy Willison
99c123b159
Move parsing methods to their own files (separates manipulation dependency from core)
2013-09-08 21:05:07 -04:00
Michał Gołębiowski
1a25f21dc3
No ticket. Restore checking individual src/**/*.js files by jsHint.
2013-09-06 20:31:18 +02:00
Michał Gołębiowski
bbbdd94725
Fix #10814 . Make support tests lazy and broken out to components.
2013-09-06 03:38:22 +02:00
Timmy Willison
004c1fc5bb
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
2013-08-29 16:18:17 -04:00
Timmy Willison
cecb52ff5c
Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.
2013-08-15 20:38:48 -04:00
Timmy Willison
6318ae6ab9
AMD-ify jQuery sourcegit s! Woo! Fixes #14113 , #14163 .
2013-08-15 14:15:49 -04:00
jaubourg
1c77259d06
Removes unnecessary call to .off()
as noted by @dcherman.
2013-01-21 03:05:03 +01:00
jaubourg
1ad874f344
Further script transport cleanup, close gh-1123.
2013-01-20 18:10:07 -05:00
jaubourg
c373a499d3
Reduced script transport
2013-01-20 18:08:59 -05:00
jaubourg
62acda819f
Adds the abort on unload trick back in since IE9 still exhibits the bug
2013-01-07 10:34:14 -05:00
jaubourg
f6df0301c8
Fixes comments per @rwldrn. Makes sure failing requests from local protocol yields status 404, not 0.
2013-01-07 10:34:11 -05:00
jaubourg
17049c73bc
2.0: reduced xhr transport
2013-01-07 10:34:07 -05:00
Oleg
d41b983259
Fix #10417 . setTimeout w/o 2nd arg is jQuery.later! Close gh-1065.
2012-12-10 20:51:49 -05:00
Richard Gibson
a938d7b128
No ticket: compress ajax. Close gh-1041.
2012-11-25 13:07:46 -05:00
Timo Tijhof
4fed8eb86d
Set async to true instead of async (prop vs. attr). Closes gh-1039
2012-11-21 21:47:59 -05:00
Oleg Gaidarenko
cafb542da9
Alternate fix for #11426 ; check responseText. Close gh-843.
2012-10-20 21:25:39 -04:00
Rick Waldron
6aae3e1038
Latest JSHint gets cranky with the _ vars in catch() {}
2012-10-15 18:05:36 -04:00
Chris Faulkner
7b5ffcdac8
Fixes a variety of typographical problems. Closes gh-853
2012-07-11 09:46:21 -04:00
Mike Sherov
8f01b92b8f
Follow the style guide, lose 72 bytes! Closes gh-840.
2012-07-09 21:39:22 -04:00
Rick Waldron
7c23b77af2
Strips IIFEs from modules; Always require built jQuery for tests.
2012-06-04 12:48:18 -04:00
jaubourg
d55a764e6e
When IE6 & IE7 serve from the cache in async mode, resolves the request asynchronously. Fixes #11778 .
2012-05-16 23:43:16 +02:00
jaubourg
8ad22a2b15
Prevents tests for replaceInData to take place if replaceInUrl is already true.
2012-04-23 00:07:15 +02:00
Richard Gibson
180a997da5
remove redundant condition
2012-04-22 14:53:36 -04:00
Richard Gibson
2d1247a413
style adherence
2012-04-22 11:40:02 -04:00
Richard Gibson
b0ea80e9fd
refactor jsonp.js for size and clarity
2012-04-22 11:36:44 -04:00
jaubourg
8ebb2f4793
Fixes #8205 . Mitigates memory usage by recycling jsonp callback names the safest possible way (no kittens were harmed in the making of this). Doesn't even try to delete window properties (would necessitate a try/catch for IE which makes the cost in size prohibitive). Unit tests added.
2012-04-20 03:02:20 +02:00