Skip to content

Commit

Permalink
The complete event wasn't getting called on local file 404s. Thanks t…
Browse files Browse the repository at this point in the history
…o 'mrspeaker' for the patch. Fixes #5468.
  • Loading branch information
jeresig committed Nov 7, 2009
1 parent 9a371e2 commit 513053d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ajax.js
Expand Up @@ -457,6 +457,8 @@ jQuery.extend({
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
} catch(e) {
jQuery.handleError(s, xhr, null, e);
// Fire the complete handlers
complete();
}

// firefox 1.5 doesn't fire statechange for sync requests
Expand Down

0 comments on commit 513053d

Please sign in to comment.