Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1331)

Unified Diff: Source/devtools/front_end/ui/SidebarPane.js

Issue 362273002: DevTools: Reduce code via using document.createElementWithClass and document.createChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/ui/Popover.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/SidebarPane.js
diff --git a/Source/devtools/front_end/ui/SidebarPane.js b/Source/devtools/front_end/ui/SidebarPane.js
index 85ac23037ad080e6660021eaebaab2a37c50cc14..07baa88ee576cc90a563c08514db6e5ff252a776 100644
--- a/Source/devtools/front_end/ui/SidebarPane.js
+++ b/Source/devtools/front_end/ui/SidebarPane.js
@@ -36,13 +36,9 @@ WebInspector.SidebarPane = function(title)
this.setMinimumSize(25, 0);
this.element.className = "sidebar-pane"; // Override
- this.titleElement = document.createElement("div");
- this.titleElement.className = "sidebar-pane-toolbar";
-
+ this.titleElement = document.createElementWithClass("div", "sidebar-pane-toolbar");
this.bodyElement = this.element.createChild("div", "body");
-
this._title = title;
-
this._expandCallback = null;
}
« no previous file with comments | « Source/devtools/front_end/ui/Popover.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698