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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 38

People

(Reporter: dao, Assigned: gioyik, Mentored)

Details

(Whiteboard: [good first bug][lang=js])

Attachments

(1 file, 1 obsolete file)

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 => { ... }
Attached patch 1126738.patch (obsolete) — Splinter Review
Patch
Attachment #8555998 - Flags: review?(dao)
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)
Assignee: nobody → gioyik
Attached patch 1126738.patchSplinter Review
patch updated
Attachment #8555998 - Attachment is obsolete: true
Attachment #8556080 - Flags: review?(dao)
Hi, I updated the patch taking in base an updated mozilla-central copy. Let me know if is OK.
Comment on attachment 8556080 [details] [diff] [review] 1126738.patch Thanks!
Attachment #8556080 - Flags: review?(dao) → review+
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.

Attachment

General

Created:
Updated:
Size: