182
rated 0 times
[
183]
[
1]
/ answers: 1 / hits: 34008
/ 14 Years ago, fri, november 12, 2010, 12:00:00
I've been looking at CoffeeScript and I'm not understanding how you would write code like this. How does it handle nested anonymous functions in its syntax?
;(function($) {
var app = $.sammy(function() {
this.get('#/', function() {
$('#main').text('');
});
this.get('#/test', function() {
$('#main').text('Hello World');
});
});
$(function() {
app.run()
});
})(jQuery);
More From » coffeescript