How do I write this in coffee script?
function setUpDialogForms() {
setUpListForm();
setUpUpdateForm();
}
I have tried
setUpDialogForms -> setUpListForm(); setUpUpdateForm()
How do I write this in coffee script?
function setUpDialogForms() {
setUpListForm();
setUpUpdateForm();
}
I have tried
setUpDialogForms -> setUpListForm(); setUpUpdateForm()
Provided the setUpListForm and setUpUpdateForm functions are defined somewhere, you can use:
setUpDialogForms = ->
setUpListForm()
setUpUpdateForm()
setUpDialogForms()