Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.

This commit is contained in:
jaubourg 2011-01-06 01:26:06 +01:00
parent 47e4cc1a0f
commit 1ca82ccd94
3 changed files with 21 additions and 21 deletions

View file

@ -496,9 +496,9 @@ jQuery.extend({
// Attach deferreds
deferred.promise( jXHR );
jXHR.success = jXHR.complete;
jXHR.success = jXHR.done;
jXHR.error = jXHR.fail;
jXHR.complete = completeDeferred.complete;
jXHR.complete = completeDeferred.done;
// Remove hash character (#7531: and string promotion)
s.url = ( "" + s.url ).replace( rhash , "" );