Skip to content

Commit 5dd8f08

Browse files
committed
Fixes jQuery 1.5- code by using jQuery.ajaxSettings and not window.ajaxSettings (yeah, that was dumb).
1 parent ec7b8b1 commit 5dd8f08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jquery.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ $.format = $.validator.format;
11011101
// Proxy ajax
11021102
var ajax = $.ajax;
11031103
$.ajax = function(settings) {
1104-
var mode = ( "mode" in settings ? settings : ajaxSettings ).mode,
1105-
port = ( "port" in settings ? settings : ajaxSettings ).port;
1104+
var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode,
1105+
port = ( "port" in settings ? settings : $.ajaxSettings ).port;
11061106
if (mode == "abort") {
11071107
if ( pendingRequests[port] ) {
11081108
pendingRequests[port].abort();

jquery.validate.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)