Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tandraschko committed Dec 11, 2017
1 parent fa04a5a commit 0d85899
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -575,10 +575,10 @@ if (!PrimeFaces.ajax) {
PrimeFaces.ajax.Response.handle(data, status, xhr);
}
}
catch(err) {
catch(err) {
PrimeFaces.error(err);
}

PrimeFaces.debug('DOM is updated.');
},
always: function(xhr, status) {
Expand Down Expand Up @@ -607,7 +607,9 @@ if (!PrimeFaces.ajax) {
}
};

// TODO remove when updating to jQuery 3
// map the new events to the old event
// somehow jQuery3 should work with 'always' isntead of 'complete' but it doesn't
// so lets use both old and new ones
xhrOptions.success = xhrOptions.done;
xhrOptions.error = xhrOptions.fail;
xhrOptions.complete = xhrOptions.always;
Expand Down

0 comments on commit 0d85899

Please sign in to comment.