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

Unified Diff: Source/devtools/front_end/sources/TargetsToolbar.js

Issue 367093003: DevTools: More code reduce 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
Index: Source/devtools/front_end/sources/TargetsToolbar.js
diff --git a/Source/devtools/front_end/sources/TargetsToolbar.js b/Source/devtools/front_end/sources/TargetsToolbar.js
index 5b0a4a9db1fc530fce59aed57ca8a63b482062f3..a9b700ba5cda98a8e305c739d4beed3ce36be892 100644
--- a/Source/devtools/front_end/sources/TargetsToolbar.js
+++ b/Source/devtools/front_end/sources/TargetsToolbar.js
@@ -8,8 +8,7 @@
*/
WebInspector.TargetsToolbar = function()
{
- this.element = document.createElement("div");
- this.element.className = "status-bar scripts-debug-toolbar targets-toolbar hidden";
+ this.element = document.createElementWithClass("div", "status-bar scripts-debug-toolbar targets-toolbar hidden");
this._comboBox = new WebInspector.StatusBarComboBox(this._onComboBoxSelectionChange.bind(this));
this.element.appendChild(this._comboBox.element);
« no previous file with comments | « Source/devtools/front_end/source_frame/GoToLineDialog.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698