PL-8968 Cannot disable DataGrid.Editor listeners

This commit is contained in:
Gleb Gorelov 2017-04-19 10:38:01 +04:00
parent a9158d2de8
commit ef89ad7e32

View File

@ -987,7 +987,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
@Override
public void removeEditorCloseListener(EditorCloseListener listener) {
getEventRouter().addListener(EditorCloseListener.class, listener);
getEventRouter().removeListener(EditorCloseListener.class, listener);
if (!getEventRouter().hasListeners(EditorCloseListener.class)) {
component.removeEditorCloseListener(editorCloseListener);
@ -1010,7 +1010,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
@Override
public void removeEditorPreCommitListener(EditorPreCommitListener listener) {
getEventRouter().addListener(EditorPreCommitListener.class, listener);
getEventRouter().removeListener(EditorPreCommitListener.class, listener);
if (!getEventRouter().hasListeners(EditorPreCommitListener.class)) {
component.removeEditorPreCommitListener(editorPreCommitListener);
@ -1033,7 +1033,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
@Override
public void removeEditorPostCommitListener(EditorPostCommitListener listener) {
getEventRouter().addListener(EditorPostCommitListener.class, listener);
getEventRouter().removeListener(EditorPostCommitListener.class, listener);
if (!getEventRouter().hasListeners(EditorPostCommitListener.class)) {
component.removeEditorPostCommitListener(editorPostCommitListener);