From 753bb4b23ec7b8f34396b834f8b6861cba618e53 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Tue, 25 Feb 2014 15:52:40 +0400 Subject: [PATCH] Fixes incorrect generation of JavaScriptBody in minified mode --- .../src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java b/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java index 1e6f755e1..2ab8c14d2 100644 --- a/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java +++ b/teavm-html4j/src/main/java/org/teavm/html4j/JavaScriptBodyGenerator.java @@ -57,7 +57,7 @@ public class JavaScriptBodyGenerator implements Generator { writer.append(",").ws(); wrapParameter(writer, context.getParameterName(i + 1)); } - writer.append(")").softNewLine(); + writer.append(");").softNewLine(); writer.append("return "); unwrapValue(writer, method.getResultType(), "result"); writer.append(";").softNewLine();