[Pkg-javascript-commits] [sockjs-client] 44/434: Htmlfile transport is not supported any more

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit be3eede59fee545b0eea954e787ade69d2ac40f5
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Wed Aug 3 10:48:05 2011 +0100

    Htmlfile transport is not supported any more
---
 lib/main.js                  |  1 -
 lib/trans-iframe-htmlfile.js | 48 --------------------------------------------
 2 files changed, 49 deletions(-)

diff --git a/lib/main.js b/lib/main.js
index 93a40ac..453e499 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -15,7 +15,6 @@ SockJS = (function(){
 <!-- include lib/trans-iframe-within.js -->
 <!-- include lib/trans-iframe-eventsource.js -->
 <!-- include lib/trans-iframe-xhr-polling.js -->
-<!-- include lib/trans-iframe-htmlfile.js -->
                   return SockJS;
           })();
 if ('_sockjs_onload' in window) setTimeout(_sockjs_onload, 1);
diff --git a/lib/trans-iframe-htmlfile.js b/lib/trans-iframe-htmlfile.js
deleted file mode 100644
index 23086c4..0000000
--- a/lib/trans-iframe-htmlfile.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var HtmlFileIframeTransport = SockJS['iframe-htmlfile'] = function () {
-    var that = this;
-    that.protocol = 'w-iframe-htmlfile';
-    that.i_constructor.apply(that, arguments);
-};
-// Inheritance.
-HtmlFileIframeTransport.prototype = new IframeTransport();
-HtmlFileIframeTransport.enabled = function () {
-    return true && IframeTransport.enabled();
-};
-
-
-var HtmlFileTransport = FacadeJS['w-iframe-htmlfile'] = function (ri, trans_url) {
-    utils.polluteGlobalNamespace();
-
-    var that = this;
-    that.ri = ri;
-    that.trans_url = trans_url;
-    that.send_constructor(ajaxSender);
-
-    that.id = 'a' + utils.random_string(6, 26);
-    var iframe_url = trans_url + '/htmlfile?c=' + escape(WPrefix + '.' + that.id);
-    that.is_loaded = false;
-    var callback = function(data) {
-        if (!that.is_loaded) {
-            that.is_loaded = true;
-            that.iframeObj.loaded();
-        }
-        that.ri._didMessage(data);
-    };
-    _window[WPrefix][that.id] = callback;
-
-    that.iframeObj = utils.createIframe(iframe_url, function(e) {
-                                            that.doCleanup();
-                                            that.ri._didClose(1001, "Can't load htmlfile iframe (" + e + ")");
-                                        });
-};
-// Inheritnace
-HtmlFileTransport.prototype = new BufferedSender();
-
-HtmlFileTransport.prototype.doCleanup = function() {
-    var that = this;
-    if (that.iframeObj) {
-        that.iframeObj.cleanup();
-        delete _window[WPrefix][that.id];
-    }
-    that.send_destructor();
-};

-- 
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