We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8724336 + abf9ba5 commit fc3885cCopy full SHA for fc3885c
src/jquery.unobtrusive-ajax.js
@@ -47,7 +47,7 @@
47
function asyncOnSuccess(element, data, contentType) {
48
var mode;
49
50
- if (contentType.indexOf("application/x-javascript") !== -1) { // jQuery already executes JavaScript for us
+ if (contentType.indexOf("application/x-javascript") !== -1 || $.isPlainObject(data)){ // jQuery already executes JavaScript for us
51
return;
52
}
53
0 commit comments