Skip to content

Commit

Permalink
Actually return the xhr from the outer function envelope as well
Browse files Browse the repository at this point in the history
The point of last two commits is that calling dajaxice function
returned undefined instead of xhr object.
  • Loading branch information
nanonyme committed Mar 20, 2012
1 parent 2a685fb commit b5708cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dajaxice/templates/dajaxice/dajaxice_core_loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% for function in module.functions %}
{% if function.doc and DAJAXICE_JS_DOCSTRINGS %}/* {{ function.doc|default:'' }}*/ {% endif %}
{{ function.name }}: function(callback_function, argv, custom_settings){
Dajaxice.call('{{function.get_callable_path}}', callback_function, argv, custom_settings);
return Dajaxice.call('{{function.get_callable_path}}', callback_function, argv, custom_settings);
}{% if not forloop.last %},{% endif %}
{% endfor %}

Expand Down

0 comments on commit b5708cc

Please sign in to comment.