| Index: Source/devtools/front_end/ui/DataGrid.js
|
| diff --git a/Source/devtools/front_end/ui/DataGrid.js b/Source/devtools/front_end/ui/DataGrid.js
|
| index dd46bfb639ff6ec128565a944be0ce3d6a5d84a2..6c1a8e935e7e3afef903a5b52915bc0ecb98013a 100644
|
| --- a/Source/devtools/front_end/ui/DataGrid.js
|
| +++ b/Source/devtools/front_end/ui/DataGrid.js
|
| @@ -1144,9 +1144,18 @@ WebInspector.DataGridNode.prototype = {
|
| */
|
| element: function()
|
| {
|
| - if (this._element)
|
| - return this._element;
|
| + if (!this._element) {
|
| + this.createElement();
|
| + this.createCells();
|
| + }
|
| + return /** @type {!Element} */ (this._element);
|
| + },
|
|
|
| + /**
|
| + * @protected
|
| + */
|
| + createElement: function()
|
| + {
|
| this._element = document.createElement("tr");
|
| this._element._dataGridNode = this;
|
|
|
| @@ -1158,10 +1167,6 @@ WebInspector.DataGridNode.prototype = {
|
| this._element.classList.add("selected");
|
| if (this.revealed)
|
| this._element.classList.add("revealed");
|
| -
|
| - this.createCells();
|
| -
|
| - return this._element;
|
| },
|
|
|
| /**
|
|
|