Bug 1317819 - eslint cleanup of /debugger/new/panel.js;r=jlast draft
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 15 Nov 2016 23:36:57 +0100
changeset 440508 d68820ffadcb8a33dbca8161dda5f4c427d50b67
parent 439366 26b662b88b95fa9089132ea3517cd2cae6c7413a
child 537388 ab996bf1e02fa493d015f521a095e1e98c8a5bd0
push id36241
push userjdescottes@mozilla.com
push dateThu, 17 Nov 2016 16:55:41 +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;