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

Unified Diff: Source/devtools/front_end/source_frame/GoToLineDialog.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
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/sources/TargetsToolbar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/source_frame/GoToLineDialog.js
diff --git a/Source/devtools/front_end/source_frame/GoToLineDialog.js b/Source/devtools/front_end/source_frame/GoToLineDialog.js
index 7e7414c0b7b9b2b072221543096d7fdd3144f9bf..891b072d3ab9663867a670856b7d7cdc385d1139 100644
--- a/Source/devtools/front_end/source_frame/GoToLineDialog.js
+++ b/Source/devtools/front_end/source_frame/GoToLineDialog.js
@@ -37,9 +37,7 @@ WebInspector.GoToLineDialog = function(sourceFrame)
{
WebInspector.DialogDelegate.call(this);
- this.element = document.createElement("div");
- this.element.className = "go-to-line-dialog";
-
+ this.element = document.createElementWithClass("div", "go-to-line-dialog");
this.element.createChild("label").textContent = WebInspector.UIString("Go to line: ");
this._input = this.element.createChild("input");
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/sources/TargetsToolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698