Skip to content

Add null checks to addEventLIstener#3

Open
skyler-murray wants to merge 1 commit intospongedouglas:masterfrom
skyler-murray:master
Open

Add null checks to addEventLIstener#3
skyler-murray wants to merge 1 commit intospongedouglas:masterfrom
skyler-murray:master

Conversation

@skyler-murray
Copy link
Copy Markdown

Ran into this at work where callback was undefined. Adding in a check for the case when callback and/or event is undefined.

Ran into this at work where callback was undefined. Adding in a check for the case when they are null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant