aboutsummaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2016-12-19 15:16:55 +0200
committerGitHub <noreply@github.com>2016-12-19 15:16:55 +0200
commit8be5b7e8e73b64726f250e13a499cc8ec1286312 (patch)
tree15dbc02575cfaec010679e712764d5eb4dbb4ff4 /documentation
parent2844b57e0b847f8deb5dab75cb4b2ffece82c4f9 (diff)
downloadvaadin-framework-8be5b7e8e73b64726f250e13a499cc8ec1286312.tar.gz
vaadin-framework-8be5b7e8e73b64726f250e13a499cc8ec1286312.zip
Fix broken docs in advanded-shortcuts (#8042)
* Fix broken docs in advanded-shortcuts
Diffstat (limited to 'documentation')
-rw-r--r--documentation/advanced/advanced-shortcuts.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/advanced/advanced-shortcuts.asciidoc b/documentation/advanced/advanced-shortcuts.asciidoc
index 0a999c936d..fa3c92fdae 100644
--- a/documentation/advanced/advanced-shortcuts.asciidoc
+++ b/documentation/advanced/advanced-shortcuts.asciidoc
@@ -154,8 +154,8 @@ public class DefaultButtonExample extends CustomComponent
HorizontalLayout buttons = new HorizontalLayout();
// Create buttons and define their listener methods.
- Button ok = new Button("OK", this, "okHandler");
- Button cancel = new Button("Cancel", this, "cancelHandler");
+ Button ok = new Button("OK", event -> okHandler());
+ Button cancel = new Button("Cancel", event -> cancelHandler());
// Have the unmodified Enter key cause an event
Action action_ok = new ShortcutAction("Default key",