summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/connectors/RpcDataSourceConnector.java2
-rw-r--r--client/src/com/vaadin/client/data/AbstractRemoteDataSource.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/connectors/RpcDataSourceConnector.java b/client/src/com/vaadin/client/connectors/RpcDataSourceConnector.java
index 5daa02c3bf..648aa2650b 100644
--- a/client/src/com/vaadin/client/connectors/RpcDataSourceConnector.java
+++ b/client/src/com/vaadin/client/connectors/RpcDataSourceConnector.java
@@ -236,7 +236,7 @@ public class RpcDataSourceConnector extends AbstractExtensionConnector {
@Override
protected void onDropFromCache(int rowIndex, JsonObject row) {
- if (!((RowHandleImpl) getHandle(row)).isPinned()) {
+ if (!isPinned(row)) {
droppedRowKeys.set(droppedRowKeys.length(), getRowKey(row));
}
}
diff --git a/client/src/com/vaadin/client/data/AbstractRemoteDataSource.java b/client/src/com/vaadin/client/data/AbstractRemoteDataSource.java
index 58cd5c5f19..380531694d 100644
--- a/client/src/com/vaadin/client/data/AbstractRemoteDataSource.java
+++ b/client/src/com/vaadin/client/data/AbstractRemoteDataSource.java
@@ -763,4 +763,8 @@ public abstract class AbstractRemoteDataSource<T> implements DataSource<T> {
return keyToIndexMap.get(rowKey);
}
}
+
+ protected boolean isPinned(T row) {
+ return pinnedRows.containsKey(getRowKey(row));
+ }
}