Bug 1317819 - eslint cleanup of /debugger/new/panel.js;r=jlast
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 15 Nov 2016 23:36:57 +0100
changeset 323197 8df90c97d9e8ca167024fe8d42b849c31cf48b55
parent 323196 0f1a12e87f4b305218d9d859edf501f13893248b
child 323198 5ae4982816f1f5c1147c14bcfd015a6546f840fe
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewersjlast
bugs1317819
milestone53.0a1
Bug 1317819 - eslint cleanup of /debugger/new/panel.js;r=jlast MozReview-Commit-ID: FSzCatDqq5o
devtools/client/debugger/new/panel.js
--- a/devtools/client/debugger/new/panel.js
+++ b/devtools/client/debugger/new/panel.js
@@ -11,67 +11,67 @@ var L10N = new LocalizationHelper(DBG_ST
 
 function DebuggerPanel(iframeWindow, toolbox) {
   this.panelWin = iframeWindow;
   this.panelWin.L10N = L10N;
   this.toolbox = toolbox;
 }
 
 DebuggerPanel.prototype = {
-  open: Task.async(function*() {
+  open: Task.async(function* () {
     if (!this.toolbox.target.isRemote) {
       yield this.toolbox.target.makeRemote();
     }
 
     yield this.panelWin.Debugger.bootstrap({
       threadClient: this.toolbox.threadClient,
       tabTarget: this.toolbox.target
     });
 
     this.isReady = true;
     return this;
   }),
 
-  _store: function() {
+  _store: function () {
     return this.panelWin.Debugger.store;
   },
 
-  _getState: function() {
+  _getState: function () {
     return this._store().getState();
   },
 
-  _actions: function() {
+  _actions: function () {
     return this.panelWin.Debugger.actions;
   },
 
-  _selectors: function() {
+  _selectors: function () {
     return this.panelWin.Debugger.selectors;
   },
 
-  getFrames: function() {
+  getFrames: function () {
     let frames = this._selectors().getFrames(this._getState());
 
-    // frames is null when the debugger is not paused
+    // Frames is null when the debugger is not paused.
     if (!frames) {
       return {
         frames: [],
         selected: -1
-      }
+      };
     }
 
     frames = frames.toJS();
     const selectedFrame = this._selectors().getSelectedFrame(this._getState());
     const selected = frames.findIndex(frame => frame.id == selectedFrame.id);
 
     frames.forEach(frame => {
       frame.actor = frame.id;
     });
 
     return { frames, selected };
   },
 
-  destroy: function() {
+  destroy: function () {
     this.panelWin.Debugger.destroy();
     this.emit("destroyed");
   }
 };
 
 exports.DebuggerPanel = DebuggerPanel;