KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to recreate this popular jQuery lambda closure with CoffeeScript: (function($, window, undefined){ $(document).ready(function(){ ... }); })(jQuery, window); So far I have this: (($, window, undefined) -> $ -> alert "js!" )(jQuery, window) I'm getting this error: Error: Parse error on line 1: Unexpected 'BOOL' It looks like undefined is the cause of the problem here. How can I get around this?
Tags (comma-separated)
Save Edits
Cancel