From 61e6d133c8251f5eeae5f4eac1cfd53b88318704 Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Sun, 6 Mar 2016 21:56:38 -0500 Subject: [PATCH] Fix logic snafoo in API #3770 --- src/definitions/behaviors/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index 210bb32d8..f355a01b1 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -276,7 +276,7 @@ $.api = $.fn.api = function(parameters) { return ($module.filter(selector.disabled).length > 0); }, expectingJSON: function() { - return settings.dataType !== 'json' && settings.dataType !== 'jsonp'; + return settings.dataType === 'json' || settings.dataType === 'jsonp'; }, form: function() { return $module.is('form') || $context.is('form');