Skip to content
Browse files

Fix @dajaxice_register #81

  • Loading branch information...
1 parent 354845d commit 78573ad75aa5717987e979e8b5b8114400b8c624 @jorgebastida committed Jan 24, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 dajaxice/decorators.py
View
5 dajaxice/decorators.py
@@ -35,8 +35,9 @@ def ajax_function(request):
"""
if len(dargs) and not dkwargs:
- dajaxice_functions.register(*dargs)
- return dargs
+ function = dargs[0]
+ dajaxice_functions.register(function)
+ return function
def decorator(function):
@functools.wraps(function)

0 comments on commit 78573ad

Please sign in to comment.
Something went wrong with that request. Please try again.