Browse Source

Fix logic snafoo in API #3770

pull/3792/head
Jack Lukic 8 years ago
parent
commit
61e6d133c8
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/api.js

2
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');

Loading…
Cancel
Save