Please sign in to comment.
Updated steal.request to handle negative status codes and IE exceptions.
1) Check for request.status<0 to call error instead of success. Safari generates negative request.status codes with missing URLs on file:// requests. 2) Make sure clean has not already been called in catch. If the request.status is 2 (missing file), error and clean will be called from the check function. In IE, an exception is also thrown. Make sure that clean and error have not already been called from check to prevent duplicate call to error for same request, and prevent an exception from begin thrown by calling the nulled clean method again. 3. If the URL errors, pass the request.status code to error to allow for branch handing based on type (404 vs 500 etc).
- Loading branch information...