mozilla/browserid — pull request #2428 by seanmonstar (2012-09-05 03:26:46+00:00)
Title: change loggedInUser to == instead of ===

loggedInUser starts as undefined, and later can become a real value, or be set explicitly to null. So, when checking if there is a loggedInUser, we must allow either undefined or null to match.

This would trigger an initial onlogout event, immediately, since it's first set to undefined, and then checked for null.

Unless this as by design? If so, we should add to the comment that this has been considered.