Categories
coffeescript javascript jquery

example of jquery code complied from coffeescript

I wanted to see the effects of jquery compiled from coffeescript. When writing any coffeescript take notice of how you must use white space. // coffeescript menuStatus = false $(“#showMenu”).live ‘tap’, -> if !menuStatus then $(“.ui-page-active”).animate marginLeft: “165px”, 280, -> menuStatus = true else $(“.ui-page-active”).animate marginLeft: “0px”, 280, -> mentuStatus = false return // compiled […]