[Pkg-javascript-commits] [sockjs-client] 121/350: remove unnecessary prefix for info iframe
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit cdde5dcb2e74d12d1ea23c586bec2ff9740eba36
Author: Bryce Kahle <bkahle at gmail.com>
Date: Fri Oct 10 18:10:10 2014 -0400
remove unnecessary prefix for info iframe
---
lib/info-iframe.js | 4 ++--
lib/transport/facade/info-receiver-iframe.js | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/info-iframe.js b/lib/info-iframe.js
index a6f66d6..b06231c 100644
--- a/lib/info-iframe.js
+++ b/lib/info-iframe.js
@@ -15,8 +15,8 @@ function InfoIframe(url) {
var ifr = self.ifr = new IframeTransport('w-iframe-info-receiver', url, url);
ifr.once('message', function (msg) {
- if (msg && msg.substr(0,1) === 'm') {
- var d = JSON3.parse(msg.substr(1));
+ if (msg) {
+ var d = JSON3.parse(msg);
var info = d[0], rtt = d[1];
self.emit('finish', info, rtt);
}
diff --git a/lib/transport/facade/info-receiver-iframe.js b/lib/transport/facade/info-receiver-iframe.js
index af1fb68..4800831 100644
--- a/lib/transport/facade/info-receiver-iframe.js
+++ b/lib/transport/facade/info-receiver-iframe.js
@@ -13,8 +13,7 @@ function WInfoReceiverIframe(transUrl, baseUrl) {
var ir = new InfoReceiver(baseUrl, XHRLocalObject);
ir.once('finish', function(info, rtt) {
- self.emit('message', 'm' + JSON3.stringify([info, rtt]) );
- self.emit('close');
+ self.emit('message', JSON3.stringify([info, rtt]) );
});
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list