Closed Bug 1323767 Opened 8 years ago Closed 8 years ago

Fix the indentation and inconsistent brace-style, and switch to using ES6 method definitions in videocontrols.xml

Categories

(Toolkit :: Video/Audio Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: jaws, Assigned: jaws)

Details

Attachments

(1 file)

As the summary says... the indentation in videocontrols.xml uses 4-space whereas in most files of mozilla-central we use 2-space. Internal to the file we inconsistently use braces around single line if-blocks. The inconsistency makes it harder to scan, and allows for easy bugs to get introduced. We can also now switch to using the shorter ES6 method definitions as described at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions
Comment on attachment 8818945 [details] Bug 1323767 - Fix the indentation and inconsistent brace-style, and switch to using ES6 method definitions in videocontrols.xml. https://reviewboard.mozilla.org/r/98858/#review99274 Look good to me, it's great to have this patch! A much better videocontrols.xml than before. Thanks you!!
Attachment #8818945 - Flags: review?(ralin) → review+
Keywords: checkin-needed
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e8397caf8c5 Fix the indentation and inconsistent brace-style, and switch to using ES6 method definitions in videocontrols.xml. r=ralin
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: