aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-01-26 06:42:14 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-02-15 02:00:38 +0300
commit0ac28ed293681cb8f2e9fdd11efa0021da039c84 (patch)
treecd52adef2464f99207c98c69f8aea5bdbf46e6d3 /src/manipulation
parentfcb6c4d1d6552c7e54df16a36b171858bdf0553f (diff)
downloadjquery-0ac28ed293681cb8f2e9fdd11efa0021da039c84.tar.gz
jquery-0ac28ed293681cb8f2e9fdd11efa0021da039c84.zip
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
Diffstat (limited to 'src/manipulation')
-rw-r--r--src/manipulation/_evalUrl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manipulation/_evalUrl.js b/src/manipulation/_evalUrl.js
index 0fdacbcee..59464bcd9 100644
--- a/src/manipulation/_evalUrl.js
+++ b/src/manipulation/_evalUrl.js
@@ -5,6 +5,8 @@ define([
jQuery._evalUrl = function( url ) {
return jQuery.ajax({
url: url,
+
+ // Make this explicit, since user can override this through ajaxSetup (#11264)
type: "GET",
dataType: "script",
cache: true,