From fb422a20d7c2e098ca891f79a9a883d8856edb9b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 18 Apr 2013 00:21:22 +0300 Subject: Fixed streaming problem (Atmosphere bug 1027) (#11629) Change-Id: I1fa7efbf7261ca4cc14ac993affe567fcd9904ea --- WebContent/VAADIN/jquery.atmosphere.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'WebContent/VAADIN') diff --git a/WebContent/VAADIN/jquery.atmosphere.js b/WebContent/VAADIN/jquery.atmosphere.js index c88d5ae368..e9def6ae95 100644 --- a/WebContent/VAADIN/jquery.atmosphere.js +++ b/WebContent/VAADIN/jquery.atmosphere.js @@ -2147,15 +2147,16 @@ jQuery.atmosphere = function() { } function _prepareCallback(messageBody, state, errorCode, transport) { - + _response.responseBody = messageBody; if (state == "messageReceived") { - if (_trackMessageSize(messageBody, _request, _response)) return; + if (_trackMessageSize(messageBody, _request, _response)) { + return; + } } _response.transport = transport; _response.status = errorCode; _response.state = state; - _response.responseBody = messageBody; _invokeCallback(); } -- cgit v1.2.3