Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.

Conversation

@jannic
Copy link

@jannic jannic commented Mar 21, 2017

We had some issues with the nodelist breaking in case some values were
not undefined, but null instead.

The comparison typeof value != 'undefined' doesn't help here, so we
got errors like "f.autoupdater is null".

I replaced typeof value != 'undefined' with value != null, which
catches both undefined and null values, and seems to be a good way
to check for both those values, according to
https://stackoverflow.com/questions/2559318/how-to-check-for-an-undefined-or-null-variable-in-javascript

This PR supersedes #14

We had some issues with the nodelist breaking in case some values were
not `undefined`, but `null` instead.

The comparison `typeof value != 'undefined'` doesn't help here, so we
got errors like "f.autoupdater is null".

I replaced `typeof value != 'undefined'` with `value != null`, which
catches both `undefined` and `null` values, and seems to be a good way
to check for both those values, according to
https://stackoverflow.com/questions/2559318/how-to-check-for-an-undefined-or-null-variable-in-javascript
@jannic
Copy link
Author

jannic commented Mar 21, 2017

FYI: Fixed a typo, missing )

@rotanid
Copy link
Contributor

rotanid commented Sep 16, 2017

@Skrupellos would be nice to have this merged ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants