Being not the best with javascript I am converting my file to coffeescript.
Here is my original JS
function makeTall(){
jQuery(this).find('ul:first').slideDown(
{queue:false, duration:220}
);
}
I have tried the following.
makeTall ->
jQuery(@).find('ul:first').slideDown
queue:false
duration:220
Which produces.
makeTall(function() {
return jQuery(this).find('ul:first').slideDown({
queue: false,
duration: 220
});
});
The new style just confuses me a little and wanted to ask is this correct ?
I also tried.