[Pkg-javascript-commits] [sockjs-client] 283/434: Fighting with IE

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:19 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 c9959cd4c2611af22131e4c64cabb8cec398cc84
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Wed Jan 11 15:02:25 2012 +0000

    Fighting with IE
---
 lib/trans-sender.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/trans-sender.js b/lib/trans-sender.js
index 138871d..68de73d 100644
--- a/lib/trans-sender.js
+++ b/lib/trans-sender.js
@@ -57,6 +57,7 @@ BufferedSender.prototype.send_destructor = function() {
 
 var jsonPGenericSender = function(url, payload, callback) {
     var that = this;
+
     if (!('_send_form' in that)) {
         var form = that._send_form = _document.createElement('form');
         var area = that._send_area = _document.createElement('textarea');
@@ -87,7 +88,11 @@ var jsonPGenericSender = function(url, payload, callback) {
     form.appendChild(iframe);
     iframe.style.display = 'none';
 
-    area.value = payload;
+    try {
+        area.value = payload;
+    } catch(e) {
+        alert('Your browser is seriously broken. Go home! ' + e.message);
+    }
     form.submit();
 
     var completed = function(e) {

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