Skip to content

Commit

Permalink
#6297 selection.table.RowModel
Browse files Browse the repository at this point in the history
tobiu committed Jan 26, 2025
1 parent f126415 commit 6f713db
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/selection/grid/RowModel.mjs
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ class RowModel extends BaseModel {
destroy(...args) {
let me = this;

me.view.un('rowClick', me.onRowClick, me);
me.view.gridContainer.un('rowClick', me.onRowClick, me);

super.destroy(...args)
}
4 changes: 2 additions & 2 deletions src/selection/table/RowModel.mjs
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ class RowModel extends BaseModel {
addDomListener() {
let me = this;

me.view.on('rowClick', me.onRowClick, me)
me.view.parent.on('rowClick', me.onRowClick, me)
}

/**
@@ -39,7 +39,7 @@ class RowModel extends BaseModel {
destroy(...args) {
let me = this;

me.view.un('rowClick', me.onRowClick, me);
me.view.parent.un('rowClick', me.onRowClick, me);

super.destroy(...args)
}

0 comments on commit 6f713db

Please sign in to comment.