Commit 1a750fe2 authored by timothy@apple.com's avatar timothy@apple.com

Optimize the panel attach method to no append if there is a

parentNode already.

Reviewed by Adam Roben.

* page/inspector/Panel.js:
(WebInspector.Panel.prototype.attach): Don't append to main-panels
if the panel element already has a parentNode.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fa486ca2
2008-05-13 Timothy Hatcher <timothy@apple.com>
Optimize the panel attach method to no append if there is a
parentNode already.
Reviewed by Adam Roben.
* page/inspector/Panel.js:
(WebInspector.Panel.prototype.attach): Don't append to main-panels
if the panel element already has a parentNode.
2008-05-13 Timothy Hatcher <timothy@apple.com>
Add Widget::isPluginView so the JavaScriptDebugServer can identify
......@@ -97,7 +97,8 @@ WebInspector.Panel.prototype = {
attach: function()
{
document.getElementById("main-panels").appendChild(this.element);
if (!this.element.parentNode)
document.getElementById("main-panels").appendChild(this.element);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment