Change View.show to call detach if the parentNode dosen't
[WebKit-https.git] / WebCore / page / inspector / ResourceView.js
index 46d8a66..73e6971 100644 (file)
@@ -42,7 +42,8 @@ WebInspector.ResourceView = function(resource)
 WebInspector.ResourceView.prototype = {
     attach: function()
     {
-        document.getElementById("resource-views").appendChild(this.element);
+        if (!this.element.parentNode)
+            document.getElementById("resource-views").appendChild(this.element);
     }
 }