mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix PaperScript code generation to wrap on new-lines, so missing colons will not cause errors.
This commit is contained in:
parent
b5d3cf2ad0
commit
6694d08d0f
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ var PaperScript = this.PaperScript = new function() {
|
|||
return walk(ast);
|
||||
});
|
||||
|
||||
return parse_js.gen_code(ast, true);
|
||||
return parse_js.gen_code(ast, {
|
||||
beautify: true
|
||||
});
|
||||
}
|
||||
|
||||
function evaluate(code, scope) {
|
||||
|
|
Loading…
Reference in a new issue