diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-02-05 17:44:19 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-02-05 18:38:22 +0200 |
commit | 22d7071a3da1b0cd503a41a5860f9d132c5a8c59 (patch) | |
tree | 911a2f6a320458a4742fb4d0fd18f96d2d9208c6 | |
parent | 663fe67e988b90c1b802f421250b6c923e5f7787 (diff) | |
download | vaadin-framework-22d7071a3da1b0cd503a41a5860f9d132c5a8c59.tar.gz vaadin-framework-22d7071a3da1b0cd503a41a5860f9d132c5a8c59.zip |
Fix ListDataSource implementation firing empty remove events
Change-Id: I43e0149ddc11aa05b33b299465eb4dbce83ec534
-rw-r--r-- | client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java b/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java index cf7ec53e68..a2bebbe784 100644 --- a/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java +++ b/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java @@ -236,7 +236,7 @@ public class ListDataSource<T> implements DataSource<T> { public void clear() { int size = ds.size(); ds.clear(); - if (changeHandler != null) { + if (changeHandler != null && size > 0) { changeHandler.dataRemoved(0, size); } } |