Closed
Bug 1285236
Opened 9 years ago
Closed 9 years ago
for (let button of buttons) doesn't freshly bind to each button for arrow function
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 449811
People
(Reporter: mconley, Unassigned)
Details
Attachments
(1 file)
553 bytes,
text/html
|
Details |
Not sure I'm using the right terminology in the summary here.
See the attached example - I should be able to click either button and get the label for the button sent to the console. This doesn't appear to work in Firefox - the arrow function in the event handler is only ever invoked with the last button that was in the array.
Tested on Release (Firefox 47) and Nightly (50.0a1 (2016-07-06)), and got the same behaviour.
Reporter | ||
Updated•9 years ago
|
Attachment #8768775 -
Attachment mime type: text/plain → text/html
Comment 1•9 years ago
|
||
See bug 449811, this will be fixed when shu lands his big frontend rewrite (bug 1263355).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•