aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/jsonp.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax/jsonp.js')
-rw-r--r--src/ajax/jsonp.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js
index 28ae0365d..dbdb4dbb8 100644
--- a/src/ajax/jsonp.js
+++ b/src/ajax/jsonp.js
@@ -1,10 +1,9 @@
define( [
"../core",
- "../var/isFunction",
"./var/nonce",
"./var/rquery",
"../ajax"
-], function( jQuery, isFunction, nonce, rquery ) {
+], function( jQuery, nonce, rquery ) {
"use strict";
@@ -37,7 +36,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
// Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
+ callbackName = s.jsonpCallback = typeof s.jsonpCallback === "function" ?
s.jsonpCallback() :
s.jsonpCallback;
@@ -88,7 +87,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
}
// Call if it was a function and we have a response
- if ( responseContainer && isFunction( overwritten ) ) {
+ if ( responseContainer && typeof overwritten === "function" ) {
overwritten( responseContainer[ 0 ] );
}