December 2011
1 post
3 tags
Adventure of writing jQuery code with CoffeeScript
I wanted to give CoffeeScript a try and decided to give it a go on current jQuery project. Below is a sample of the code.
CoffeeScript Code
$ ->
###
--- Variables Init
###
menuStatus = false
newAlertsMenu = false
###
--- Show Main Menu
###
$("a.showMenu").live 'tap', ->
if !menuStatus then $(".ui-page-active").animate
marginLeft: "165px", 280, ->
menuStatus =...