candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Correct check for undefined variable #481

Closed mathiasrw closed 7 years ago

mathiasrw commented 7 years ago

The code was comparing the result of typeof with a variable named undefined.

As typeof returns a string it should compare to 'undefined'.

mweibel commented 7 years ago

LGTM

benlangfeld commented 7 years ago

LGTM