Bug 1317819 - eslint cleanup of /debugger/new/panel.js;r=jlast
MozReview-Commit-ID: FSzCatDqq5o
--- 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;