Closed
Bug 1126738
Opened 11 years ago
Closed 11 years ago
Use arrow functions in browser-data-submission-info-bar.js
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 38
People
(Reporter: dao, Assigned: gioyik, Mentored)
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(1 file, 1 obsolete file)
2.55 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
In browser/base/content/browser-data-submission-info-bar.js, there are a few cases of inline functions using bind(this) that can be simplified by replacing:
function () {
...
}.bind(this)
with:
() => {
...
}
or, as another example:
function foo(bar) {
...
}.bind(this)
with:
bar => {
...
}
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 8555998 [details] [diff] [review]
1126738.patch
Looks good, except that your copy of the repository seems outdated. Can you please update your working directory and redo the patch?
Attachment #8555998 -
Flags: review?(dao)
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → gioyik
Assignee | ||
Comment 3•11 years ago
|
||
patch updated
Attachment #8555998 -
Attachment is obsolete: true
Attachment #8556080 -
Flags: review?(dao)
Assignee | ||
Comment 4•11 years ago
|
||
Hi, I updated the patch taking in base an updated mozilla-central copy. Let me know if is OK.
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8556080 [details] [diff] [review]
1126738.patch
Thanks!
Attachment #8556080 -
Flags: review?(dao) → review+
Reporter | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Thanks
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
You need to log in
before you can comment on or make changes to this bug.
Description
•