Closed
Bug 987736
Opened 11 years ago
Closed 11 years ago
remove third false param from addEventListener
Categories
(Webmaker Graveyard :: Popcorn Maker, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: thecount, Assigned: akshaytiwari.003, Mentored)
Details
(Whiteboard: [good first bug])
Attachments
(2 files)
In response to bug 897290
We have the third param false used all over the place in our adEventListener calls. This is not needed anymore. You only need a param if it is true.
| Reporter | ||
Updated•11 years ago
|
Whiteboard: [mentor=thecount][good first bug]
Comment 1•11 years ago
|
||
I'd like to work on it. Can you please guide me through the procedure ?
Comment 2•11 years ago
|
||
Attachment #8397065 -
Flags: review?(scott)
Updated•11 years ago
|
Assignee: nobody → aditya.91.singh
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8397065 [details]
https://github.com/mozilla/webmaker.org/pull/657/files
That is the idea.
However, this ticket is specifically to do it for https://github.com/mozilla/popcorn.webmaker.org
However, it looks to only exist in that one spot on webmaker.org, so I see no reason why not to take this patch for webmaker.org, but keep this ticket open for doing it on popcorn maker too.
Attachment #8397065 -
Flags: review?(scott) → review+
Comment 4•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker.org
https://github.com/mozilla/webmaker.org/commit/bc615819f6e7990260f45c8377a832f9f29b55a5
Bug 987736 - Remove third false parameter from addEventListener
Comment 5•11 years ago
|
||
Hi Scott,
I am interested also for further thing . Can you guide for solving this bug ?
Flags: needinfo?(scott)
| Reporter | ||
Comment 6•11 years ago
|
||
Hey!
Similar to this patch: https://github.com/mozilla/webmaker.org/pull/657/files
We want to update the uses of addEventListener for https://github.com/mozilla/popcorn.webmaker.org
That is, remove all the third false params. If the param is true, we need to leave it.
Flags: needinfo?(scott)
Comment 7•11 years ago
|
||
Hi Scott
I have understood but one quick question to you that is there any specific dir or i have to check whole https://github.com/mozilla/popcorn.webmaker.org repo to update the uses of addEventListener . I mean to say that in webmaker the changes made in only one file public/js/pages/details.js
Flags: needinfo?(scott)
Comment 8•11 years ago
|
||
Anything you should need to change will be in the public/src directory.
Comment 9•11 years ago
|
||
@Matthew : thanks for your help.
I have sent the pull request https://github.com/mozilla/popcorn.webmaker.org/pull/537 .
Updated•11 years ago
|
Assignee: aditya.91.singh → brnet00
| Reporter | ||
Comment 10•11 years ago
|
||
There are some trivial errors here:
Linting public/src/editor/base-editor.js...ERROR
[L227:C60] E024: Unexpected ')'.
window.addEventListener( "mousedown", onMousedown, );
[L227:C60] E030: Expected an identifier and instead saw ')'.
window.addEventListener( "mousedown", onMousedown, );
[L227:C61] W116: Expected ')' and instead saw ';'.
window.addEventListener( "mousedown", onMousedown, );
[L227:C62] W033: Missing semicolon.
window.addEventListener( "mousedown", onMousedown, );
Basically, remove the final comma on those four lines should clean it up.
Flags: needinfo?(scott)
| Reporter | ||
Comment 11•11 years ago
|
||
Err, that's all on one line. So just remove the comma on that one line.
| Reporter | ||
Comment 12•11 years ago
|
||
Ah, I missed this in the initial description of the bug.
It's also safe to remove the false param from removeEventListener
| Reporter | ||
Comment 13•11 years ago
|
||
Finally, looks like you'll need to rebase as the commit you initially based this on, being 9c6fd75254444b4c174719e5add4b3312b8e4195 or https://github.com/mozilla/popcorn.webmaker.org/commit/9c6fd75254444b4c174719e5add4b3312b8e4195 was busted and got reverted.
I tested it, and doing a rebase onto your patch merges cleanly.
Let me know if you have questions about rebasing and merges! Happy to help.
Updated•11 years ago
|
Mentor: scott
Whiteboard: [mentor=thecount][good first bug] → [good first bug]
| Assignee | ||
Updated•11 years ago
|
Assignee: brnet00 → akshaytiwari.003
| Assignee | ||
Comment 14•11 years ago
|
||
I've removed the false parameter from removeEventListener. Below is the link and i've attached the link as attachment too.
https://github.com/mozilla/webmaker.org/pull/929
| Assignee | ||
Comment 15•11 years ago
|
||
Attachment #8468583 -
Flags: review?(scott)
| Assignee | ||
Comment 16•11 years ago
|
||
(In reply to akshaytiwari.003 from comment #15)
> Created attachment 8468583 [details] [review]
> Regarding the bug 987736 * sorry
| Reporter | ||
Comment 17•11 years ago
|
||
Comment on attachment 8468583 [details] [review]
Regarding the bug 985536
This looks fine to me.
Landing this.
Attachment #8468583 -
Flags: review?(scott) → review+
| Reporter | ||
Comment 18•11 years ago
|
||
I also noticed https://github.com/mozilla/popcorn.webmaker.org/pull/537/files got closed and never landed. I'll see if I can recover it.
Then we can probably close this ticket.
Comment 19•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/popcorn.webmaker.org
https://github.com/mozilla/popcorn.webmaker.org/commit/90d147f19f8ffb2191779e162db3cd1d4c1160d8
Bug 987736 - Remove third false parameter from addEventListener
| Reporter | ||
Comment 20•11 years ago
|
||
Closing this now, bunch of stuff landed :D
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 21•11 years ago
|
||
Thank you.
You need to log in
before you can comment on or make changes to this bug.
Description
•