Skip to content
Browse files

Fix #61 - catch all was two lines too wide, whoops

  • Loading branch information...
1 parent c22bed0 commit aa546970d253f5c8405b192041534fdf031c5181 @majek majek committed Apr 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/dom2.js
View
8 lib/dom2.js
@@ -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);

0 comments on commit aa54697

Please sign in to comment.
Something went wrong with that request. Please try again.