diff --git a/dajaxice/templates/dajaxice/dajaxice_function_loop.js b/dajaxice/templates/dajaxice/dajaxice_function_loop.js index 092d9a4..8d9acf9 100644 --- a/dajaxice/templates/dajaxice/dajaxice_function_loop.js +++ b/dajaxice/templates/dajaxice/dajaxice_function_loop.js @@ -1,5 +1,5 @@ {% for function_name, function in module.functions.items %} {{ function_name }}: function(callback_function, argv, custom_settings){ Dajaxice.call('{{ function.name }}', '{{ function.method }}', callback_function, argv, custom_settings); - }{% if not forloop.last or top %},{% endif %} + }{% if not forloop.last or top or module.submodules %},{% endif %} {% endfor %}