Skip to content

Commit

Permalink
Consider anything other then http status = 200 as error... need more …
Browse files Browse the repository at this point in the history
…work
  • Loading branch information
peterwmwong committed Nov 1, 2010
1 parent d226167 commit 1312d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cell/util/loadComponents.js
Expand Up @@ -24,7 +24,7 @@ require.def('cell/util/loadComponents',
// Do not explicitly handle errors, those should be
// visible via console output in the browser.
if (xhr.readyState === 4) {
callback(xhr.responseText, (xhr.status === 404));
callback(xhr.responseText, (xhr.status !== 200));
}
};
xhr.send(null);
Expand Down

0 comments on commit 1312d88

Please sign in to comment.