The auth property is then extended with a 'logAttempt' function and a 'clearLoginAttempts' function.
The User object in the parent context can then use these properties.
Oh, and I agree that the tabbing makes it look ridiculous. Javascript should use two spaces, nothing more, nothing less (let the fight begin).
That's not the code's fault, GitHub should set the tab-size[1] property to something more legible.
[1] http://www.w3.org/TR/css3-text/#tab-size
The auth property is then extended with a 'logAttempt' function and a 'clearLoginAttempts' function.
The User object in the parent context can then use these properties.
Oh, and I agree that the tabbing makes it look ridiculous. Javascript should use two spaces, nothing more, nothing less (let the fight begin).