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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
index 61e9c4af61d52191105ad960f89c01daee75dbce..f655300daa23cedcda61fb5c8321de9d35682260 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
@@ -746,7 +746,7 @@ WebInspector.DataGrid.prototype = {
// Get the width of the cell in the first (and only) row of the
// header table in order to determine the width of the column, since
// it is not possible to query a column for its width.
- left[i] = (left[i-1] || 0) + this.headerTableBody.rows[0].cells[i].offsetWidth;
+ left[i] = (left[i - 1] || 0) + this.headerTableBody.rows[0].cells[i].offsetWidth;
}
// Make n - 1 resizers for n columns.
@@ -1450,7 +1450,7 @@ WebInspector.DataGridNode.prototype = {
insertChild: function(child, index)
{
if (!child)
- throw("insertChild: Node can't be undefined or null.");
+ throw "insertChild: Node can't be undefined or null.";
if (child.parent === this) {
var currentIndex = this.children.indexOf(child);
if (currentIndex < 0)
@@ -1503,9 +1503,9 @@ WebInspector.DataGridNode.prototype = {
removeChild: function(child)
{
if (!child)
- throw("removeChild: Node can't be undefined or null.");
+ throw "removeChild: Node can't be undefined or null.";
if (child.parent !== this)
- throw("removeChild: Node is not a child of this node.");
+ throw "removeChild: Node is not a child of this node.";
if (this.dataGrid)
this.dataGrid.updateSelectionBeforeRemoval(child, false);
@@ -1818,7 +1818,7 @@ WebInspector.DataGridNode.prototype = {
return;
if (!this.parent)
- throw("savePosition: Node must have a parent.");
+ throw "savePosition: Node must have a parent.";
this._savedPosition = {
parent: this.parent,
index: this.parent.children.indexOf(this)

Powered by Google App Engine
This is Rietveld 408576698