]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed event name to match example code
authorMarcus Hellberg <marcus@vaadin.com>
Mon, 29 Aug 2016 19:52:00 +0000 (12:52 -0700)
committerArtur Signell <artur@vaadin.com>
Mon, 29 Aug 2016 20:08:36 +0000 (23:08 +0300)
Change-Id: Id9333bae30c7bf5c24dcd0aca1cbee671c28910e

documentation/datamodel/datamodel-fields.asciidoc

index f6d1530420271ea1d07f7b93150a872a28f3b931..651def13a648ebfefa6ed3cdb66b41e3db75edf8 100644 (file)
@@ -35,7 +35,7 @@ By listening to the event, we can find out the new value of the field and whethe
 [source,java]
 ----
 TextField nameField = new TextField("Enter your name");
-nameField.addValueChangeListener(clickEvent -> {
+nameField.addValueChangeListener(event -> {
   String origin = event.isUserOriginated()
     ? "by the user"
     : "from code";