Permalink
Browse files

A stab at handling function composition. Tests pass.

  • Loading branch information...
ralphbean committed Mar 21, 2012
1 parent 1526505 commit 7ae78e03bd791f85d447fc0e3f6b7a6f4f392f74
Showing with 2 additions and 1 deletion.
  1. +2 −1 tw2/core/js.py
@@ -223,10 +223,11 @@ def __call__(self, *args):
def __get_js_repr(self):
if self.__called:
args = self.__args
return '%s(%s)' % (
rep = '%s(%s)' % (
self.__name,
', '.join(imap(encoder.encode, args))
)
return rep.replace('\\', '')
else:
return self.__name

0 comments on commit 7ae78e0

Please sign in to comment.