Skip to content

Commit

Permalink
revert change for #66 as it breaks local files
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Apr 14, 2014
1 parent 9f71b51 commit 0e3c919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ define(['module'], function (module) {
//Do not explicitly handle errors, those should be
//visible via console output in the browser.
if (xhr.readyState === 4) {
status = xhr.status;
if ((status > 399 && status < 600) || status === 0) {
status = xhr.status || 0;
if (status > 399 && status < 600) {
//An http 4xx or 5xx error. Signal an error.
err = new Error(url + ' HTTP status: ' + status);
err.xhr = xhr;
Expand Down

0 comments on commit 0e3c919

Please sign in to comment.