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

Inline anonymous functions don't have to look so funny. Here's an example in coffeescript that takes no arguments and performs a quick action: https://github.com/dpritchett/chatbox/blob/master/public/cha...

Explanation: After the 500ms textbox fadeIn finishes it fires a an anonymous callback function which calls a 3000ms fadeOut.



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

Search: