From aa546970d253f5c8405b192041534fdf031c5181 Mon Sep 17 00:00:00 2001 From: Marek Majkowski Date: Tue, 24 Apr 2012 14:02:23 +0100 Subject: [PATCH] Fix #61 - catch all was two lines too wide, whoops --- lib/dom2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dom2.js b/lib/dom2.js index c4262b12..27bd3a24 100644 --- a/lib/dom2.js +++ b/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);