Category:CoffeeScript: Difference between revisions

Shorter jQuery snippet
(updates to github stats and rails adoption of CS)
(Shorter jQuery snippet)
Line 14:
<lang javascript>
$(document).ready(function() {
// Initialization code goes here
});
</lang>
or even shorter,
<lang javascript>
$(function() {
// Initialization code goes here
});
Line 23 ⟶ 29:
<lang ruby>
$(document).ready ->
# Initialization code goes here
</lang>
or
<lang ruby>
$ ->
# Initialization code goes here
</lang>
Anonymous user