Writing a jquery plugin in coffeescript – how to get “(function($)” and “(jQuery)”?

The answer is that you don’t need to call it like that in CoffeeScript — your script is already safely wrapped in a closure, so there’s no need for jQuery-passed-in-as-a-parameter-tricks. Just write:

$ = jQuery

… at the top of your script, and you’re good to go.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)