Skip to content

Commit

Permalink
Fix #61 - catch all was two lines too wide, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Apr 24, 2012
1 parent c22bed0 commit aa54697
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dom2.js
Expand Up @@ -59,11 +59,11 @@ AbstractXHRObject.prototype._start = function(method, url, payload, opts) {
try {
var status = x.status;
var text = x.responseText;
// IE does return readystate == 3 for 404 answers.
if (text.length > 0) {
that.emit('chunk', status, text);
}
} catch (x) {};
// IE does return readystate == 3 for 404 answers.
if (text && text.length > 0) {
that.emit('chunk', status, text);
}
break;
case 4:
that.emit('finish', x.status, x.responseText);
Expand Down

0 comments on commit aa54697

Please sign in to comment.