Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It initializes the Auth module with the User object. The Auth module in turn extends the User object with the property 'auth'.

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).



> 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: