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 jQuery 
var menuStatus;

What are the causes? In most of the cases, men who are experiencing erectile dysfunction can get successfully treated with oral drugs such as the wonder pill  viagra sans prescription, viagra. 100mg viagra online It helps to impregnate your woman and helps to own a child. This medication as emerged as the most price of cialis 10mg  popular herbs that can help stop Premature Ejaculation. Erectile dysfunction continues to be a worst ailment & there has been not proper remedial measure in the ancient ages in which would summate the hardships involving such anyone who had been  cialis professional effects affected from the disorder. menuStatus = false;

$("a.showMenu").live('tap', function() {
  if (!menuStatus) {
    return $(".ui-page-active").animate({
      marginLeft: "165px"
    }, 280, function() {
      return menuStatus = true;
    });
  } else {
    return $(".ui-page-active").animate({
      marginLeft: "0px"
    }, 280, function() {
      var mentuStatus;
      return mentuStatus = false;
    });
  }
});

return;