candy-chat / candy

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

Correct check for undefined variable #481

Closed mathiasrw closed 8 years ago

mathiasrw commented 8 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 8 years ago

LGTM

benlangfeld commented 8 years ago

LGTM