FB Login Function in Coffeescript -
how write next in coffeescript?
$('#fb-login-button').click(function() { fb.login(function(response) { }, { scope: $('#fb-login-button').data('fbscope') }); });
like :
$('#fb-login-buton').click -> fb.login ((response) -> ), scope: $('#fb-login-button').data 'fbscope' you can check out compiled code http://coffeescript.org/
coffeescript
No comments:
Post a Comment