Commit fb7182f3 authored by weinig's avatar weinig

Reviewed by Adam Roben.

        Annotate prototypes by adding "Prototype" subtitle.

        * page/inspector/ResourcePanel.js:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 38fb4cc1
2007-06-25 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
Annotate prototypes by adding "Prototype" subtitle.
* page/inspector/ResourcePanel.js:
2007-06-25 George Staikos <staikos@kde.org>
Reviewed by Zack.
......@@ -904,8 +904,13 @@ WebInspector.ResourcePanel.prototype = {
if (!hasChildren)
continue;
var title = Object.prototype.toString.call(prototype).replace(/^\[object (\w*?)(Prototype)?\]$/i, "$1");
var section = new WebInspector.PropertiesSection(title);
var title = Object.describe(prototype);
var subtitle;
if (title.match(/Prototype$/)) {
title = title.replace(/Prototype$/, "");
subtitle = "Prototype";
}
var section = new WebInspector.PropertiesSection(title, subtitle);
section.onpopulate = WebInspector.DOMPropertiesSection.onpopulate(prototype);
propertiesBody.appendChild(section.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