Skip to content

Commit 4dd9510

Browse files
committed
refactor
1 parent 7fbdaff commit 4dd9510

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

services/static-webserver/client/source/class/osparc/dashboard/SortedByMenuButton.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ qx.Class.define("osparc.dashboard.SortedByMenuButton", {
3434
this.setMenu(sortedByMenu);
3535

3636
const options = this.self().getSortByOptions();
37-
3837
options.forEach((option, idx) => {
3938
const btn = new qx.ui.menu.Button();
4039
btn.btnId = option.id;
@@ -51,11 +50,6 @@ qx.Class.define("osparc.dashboard.SortedByMenuButton", {
5150

5251
btn.addListener("execute", () => this.__buttonExecuted(btn));
5352
});
54-
55-
this.addListener("changeSort", e => {
56-
const sort = e.getData();
57-
this.__handelSortEvent(sort)
58-
}, this);
5953
},
6054

6155
statics: {
@@ -89,6 +83,7 @@ qx.Class.define("osparc.dashboard.SortedByMenuButton", {
8983
},
9084
nullable: false,
9185
event: "changeSort",
86+
apply: "__handelSortEvent",
9287
}
9388
},
9489

0 commit comments

Comments
 (0)