Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bobby javavscript modernization #221

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bobbyt1997
Copy link

No description provided.

postRequestID()
})

let getVersion = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a let? I don't think we should be reassigning these functions.

(etc for the others)

// Loads and unloads audio stream source
document
.getElementById(PLAY_BUTTON)
.addEventListener('click', () => stream.paused ? play() : pause())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we refactor this to be jQuery?

$(`#${PLAY_BUTTON}`).click(() => stream.paused ? play() : pause())

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also goes for other uses of document.getElementBy*

@kenellorando
Copy link
Owner

@bobbyt1997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants