Closed Bug 1198828 Opened 9 years ago Closed 9 years ago

Superfluous bind(this) in network-panel.js

Categories

(DevTools :: Netmonitor, defect)

defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox43 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

Details

Attachments

(1 file)

https://dxr.mozilla.org/mozilla-central/rev/f61c3cc0eb8b7533818e7379ccc063b611015d9d/browser/devtools/webconsole/network-panel.js#327

        a.addEventListener("mousedown", this._longStringClick.bind(this, aItem));

|this| is the same |this| that function got bound to in the panel's constructor (because of the arrow function in which this addEventListener call happens:


function NetworkPanel(aParent, aHttpActivity, aWebConsoleFrame)
{
...
  this._longStringClick = this._longStringClick.bind(this);
Attached patch PatchSplinter Review
Reviewboard's hg is down, so splinter it is. (Patrick, please forward as appropriate...)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #8652933 - Flags: review?(pbrosset)
Attachment #8652933 - Flags: review?(pbrosset) → review+
https://hg.mozilla.org/mozilla-central/rev/dcb1e80534cf
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

Creator:
Created:
Updated:
Size: