Closed Bug 1199579 Opened 9 years ago Closed 9 years ago

Eslint cleanup of inplace-editor

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox43 --- fixed

People

(Reporter: gl, Assigned: gl)

Details

Attachments

(1 file, 2 obsolete files)

      No description provided.
Attached patch 1199579.patch (obsolete) — Splinter Review
Attachment #8653950 - Flags: review?(pbrosset)
Comment on attachment 8653950 [details] [diff] [review]
1199579.patch

Review of attachment 8653950 [details] [diff] [review]:
-----------------------------------------------------------------

Nice clean up!

::: browser/devtools/shared/inplace-editor.js
@@ +190,5 @@
> +  this.destroy = options.destroy;
> +  this.initial = options.initial ? options.initial : this.elt.textContent;
> +  this.multiline = options.multiline || false;
> +  this.trimOutput = options.trimOutput === undefined ?
> +                    true : !!options.trimOutput;

nit: I think it's clearer when these are formatted like this:

this.trimOutput = options.trimOutput === undefined
                  ? true
                  : !!options.trimOutput;

(if bugzilla doesn't preserve the indentation, I'm vertically aligning ? below options, and : below ?)
Attachment #8653950 - Flags: review?(pbrosset) → review+
Attached patch 1199579.patch [1.0] (obsolete) — Splinter Review
Attachment #8653950 - Attachment is obsolete: true
Attachment #8654261 - Flags: review+
(In reply to Gabriel Luong [:gl] from comment #4)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=00a0645f56f6

This had dt1 failures...
(In reply to Pulsebot from comment #5)
> https://hg.mozilla.org/integration/fx-team/rev/0fa63b2ccea0

... and so did this. Backed out:

remote:   https://hg.mozilla.org/integration/fx-team/rev/5a42a522ae06
Flags: needinfo?(gabriel.luong)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a60b2d82a881
Attachment #8654261 - Attachment is obsolete: true
Flags: needinfo?(gabriel.luong)
Attachment #8654482 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/a877d212f6b0
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: