From 0e3c9196670597e92c089f060ab81e7900cb2e10 Mon Sep 17 00:00:00 2001 From: jrburke Date: Mon, 14 Apr 2014 09:51:35 -0700 Subject: [PATCH] revert change for #66 as it breaks local files --- text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text.js b/text.js index 2750113..15d119d 100644 --- a/text.js +++ b/text.js @@ -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;