Skip to content

Commit

Permalink
pj.api.closureCompile now supports a list of modes, e.g. ["simple", "…
Browse files Browse the repository at this point in the history
…pretty"]
  • Loading branch information
andrewschaaf committed Dec 22, 2010
1 parent 808210d commit aa00298
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pj/api.py
Expand Up @@ -107,6 +107,11 @@ def closureCompile(js, closureMode):
if not closureMode:
return js

if isinstance(closureMode, list) or isinstance(closureMode, tuple):
for mode in closureMode:
js = closureCompile(js, mode)
return js

modeArgs = {
'pretty': [
'--compilation_level', 'WHITESPACE_ONLY',
Expand Down

0 comments on commit aa00298

Please sign in to comment.