diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2017-03-06 15:27:09 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-07 15:43:00 +0200 |
commit | 8f162faafa5fa26389e66f9728fc66a54b03c4c8 (patch) | |
tree | d8277eab6802c1fe1789dab118c6154f36926134 /compatibility-client | |
parent | 427e31f5b66bfd19bd08a329c83bb435e87c393d (diff) | |
download | vaadin-framework-8f162faafa5fa26389e66f9728fc66a54b03c4c8.tar.gz vaadin-framework-8f162faafa5fa26389e66f9728fc66a54b03c4c8.zip |
Add missing since, remove unused command
Diffstat (limited to 'compatibility-client')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java index ea7901773d..7ba5c9cc82 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java @@ -1316,23 +1316,6 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, private static final String ERROR_CLASS_NAME = "error"; private static final String NOT_EDITABLE_CLASS_NAME = "not-editable"; - ScheduledCommand fieldFocusCommand = new ScheduledCommand() { - private int count = 0; - - @Override - public void execute() { - Element focusedElement = WidgetUtil.getFocusedElement(); - if (focusedElement == grid.getElement() - || focusedElement == Document.get().getBody() - || count > 2) { - focusColumn(focusedColumnIndexDOM); - } else { - ++count; - Scheduler.get().scheduleDeferred(this); - } - } - }; - /** * A handler for events related to the Grid editor. Responsible for * opening, moving or closing the editor based on the received event. |