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.
1 parent 8724336 commit abf9ba5Copy full SHA for abf9ba5
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