Web Inspector: TDZ in ProbeSetDataGrid construction
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Aug 2015 20:33:26 +0000 (20:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Aug 2015 20:33:26 +0000 (20:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=147834

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-08-10
Reviewed by Timothy Hatcher.

* UserInterface/Views/ProbeSetDataGrid.js:
(WebInspector.ProbeSetDataGrid):
Do not use "this" before calling super.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188221 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/ProbeSetDataGrid.js

index 300a4a2..5541475 100644 (file)
@@ -1,3 +1,14 @@
+2015-08-10  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: TDZ in ProbeSetDataGrid construction
+        https://bugs.webkit.org/show_bug.cgi?id=147834
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/ProbeSetDataGrid.js:
+        (WebInspector.ProbeSetDataGrid):
+        Do not use "this" before calling super.
+
 2015-08-08  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Timeline ruler handle tooltip shows wrong value when handles overlap
index 03b6019..98bd0e4 100644 (file)
@@ -29,7 +29,6 @@ WebInspector.ProbeSetDataGrid = class ProbeSetDataGrid extends WebInspector.Data
     constructor(probeSet)
     {
         console.assert(probeSet instanceof WebInspector.ProbeSet, "Invalid ProbeSet argument: ", probeSet);
-        this.probeSet = probeSet;
 
         var columns = {};
         for (var probe of probeSet.probes) {
@@ -39,6 +38,8 @@ WebInspector.ProbeSetDataGrid = class ProbeSetDataGrid extends WebInspector.Data
 
         super(columns);
 
+        this.probeSet = probeSet;
+
         this.element.classList.add("inline");
 
         this._frameNodes = new Map;