Closed Bug 987736 Opened 11 years ago Closed 11 years ago

remove third false param from addEventListener

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

x86_64
Linux
defect
Not set
normal

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.
Whiteboard: [mentor=thecount][good first bug]
I'd like to work on it. Can you please guide me through the procedure ?
Assignee: nobody → aditya.91.singh
Status: NEW → ASSIGNED
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+
Hi Scott, I am interested also for further thing . Can you guide for solving this bug ?
Flags: needinfo?(scott)
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)
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)
Anything you should need to change will be in the public/src directory.
@Matthew : thanks for your help. I have sent the pull request https://github.com/mozilla/popcorn.webmaker.org/pull/537 .
Assignee: aditya.91.singh → brnet00
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)
Err, that's all on one line. So just remove the comma on that one line.
Ah, I missed this in the initial description of the bug. It's also safe to remove the false param from removeEventListener
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.
Mentor: scott
Whiteboard: [mentor=thecount][good first bug] → [good first bug]
Assignee: brnet00 → akshaytiwari.003
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
Attachment #8468583 - Flags: review?(scott)
(In reply to akshaytiwari.003 from comment #15) > Created attachment 8468583 [details] [review] > Regarding the bug 987736 * sorry
Comment on attachment 8468583 [details] [review] Regarding the bug 985536 This looks fine to me. Landing this.
Attachment #8468583 - Flags: review?(scott) → review+
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.
Closing this now, bunch of stuff landed :D
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Thank you.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: