Permalink
Browse files

Solve the function composition problem.

  • Loading branch information...
ralphbean committed Mar 21, 2012
1 parent c96fb28 commit ff432f26a5c0656c17b85a5d4ef57a8050e93ede
Showing with 4 additions and 1 deletion.
  1. +4 −1 tw2/core/js.py
@@ -227,7 +227,10 @@ def __get_js_repr(self):
self.__name,
', '.join(imap(encoder.encode, args))
)
return rep.replace('\n', '').replace('\\', '')
return rep\
.replace('\\"', '"')\
.replace("\\'", "'")\
.replace('\\n', '\n')
else:
return self.__name

0 comments on commit ff432f2

Please sign in to comment.