jupiterjs/steal — pull request #56 by snesin (2011-12-06 18:11:45+00:00)
Title: Fix 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 (-1100) 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 afterwards. In catch, 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 being thrown from a call to the nulled clean method.
3. If the URL errors, pass the request.status code to error to allow for branched handing based on type (404 vs 500 etc).