a removeChild block opera on iframe stream, removed
[brisk.git] / web / xynt-streaming.js
index a8cad92..7e61638 100644 (file)
@@ -244,10 +244,16 @@ transport_iframe.prototype = {
     ifra: null,
 
     destroy: function () { /* public */
-        if (this.ifra != null) {
-            this.doc.body.removeChild(this.ifra);
-            delete this.ifra;
-            this.ifra = null;
+        try {
+            if (this.ifra != null) {
+                // FIXME: with opera on win this remove child crash js so is
+                //        commented
+                // this.doc.body.removeChild(this.ifra);
+                delete this.ifra;
+                this.ifra = null;
+            }
+        } catch (b) {
+            alert("catched");
         }
     },