summaryrefslogtreecommitdiffstats
path: root/documentation/articles/IntegratingAJavaScriptComponent.asciidoc
diff options
context:
space:
mode:
authorErik Lumme <erik@vaadin.com>2017-09-12 11:02:55 +0300
committerErik Lumme <erik@vaadin.com>2017-09-12 11:02:55 +0300
commitfef2f262e02b02b23a9aed077dff389231ce25d8 (patch)
treea36846ce9e86f64bea65dd3b2c44fc448ee8d8d8 /documentation/articles/IntegratingAJavaScriptComponent.asciidoc
parent0a170337e580387566fee1af46c9537cdc8d62db (diff)
downloadvaadin-framework-fef2f262e02b02b23a9aed077dff389231ce25d8.tar.gz
vaadin-framework-fef2f262e02b02b23a9aed077dff389231ce25d8.zip
Change code annotation to JavaScript
Diffstat (limited to 'documentation/articles/IntegratingAJavaScriptComponent.asciidoc')
-rw-r--r--documentation/articles/IntegratingAJavaScriptComponent.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/articles/IntegratingAJavaScriptComponent.asciidoc b/documentation/articles/IntegratingAJavaScriptComponent.asciidoc
index 7762f14e04..88cb679cc7 100644
--- a/documentation/articles/IntegratingAJavaScriptComponent.asciidoc
+++ b/documentation/articles/IntegratingAJavaScriptComponent.asciidoc
@@ -48,7 +48,7 @@ state of a normal GWT component.
[source,java]
....
public class FlotState extends JavaScriptComponentState {
- public List<List<List<Double>>> series = new ArrayList<List<List<Double>>>();
+ public List<List<List<Double>>> series = new ArrayList<List<List<Double>>>();
}
....
@@ -82,7 +82,7 @@ conversion between server-side Java values and client-side JavaScript
values. `double[][][]` in Java would give the same JavaScript structure,
but it was not used here as it gives less flexibility in the Java code.
-[source,java]
+[source,javascript]
....
window.com_example_Flot = function() {
var element = $(this.getElement());