aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-06-11 13:59:34 +0200
committerjaubourg <j@ubourg.net>2012-06-11 14:00:16 +0200
commitac48a19b92e60f08e5b00a46b5551a503c292fd5 (patch)
tree623962004549610b85a82740baf056633427e9a1 /src
parent5f35b3d9f90d07ee084d59702a54051ee51fb0d3 (diff)
downloadjquery-ac48a19b92e60f08e5b00a46b5551a503c292fd5.tar.gz
jquery-ac48a19b92e60f08e5b00a46b5551a503c292fd5.zip
Some work to modularize ajax later on.
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index e53daa9b6..82823e578 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -340,14 +340,14 @@ jQuery.fn.extend({
if ( scripts.length ) {
jQuery.each( scripts, function( i, elem ) {
if ( elem.src ) {
- jQuery.ajax({
+ jQuery.ajax ? jQuery.ajax({
url: elem.src,
type: "GET",
dataType: "script",
async: false,
global: false,
throws: true
- });
+ }) : jQuery.error( "no ajax" );
} else {
jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) );
}