Skip to content

Commit

Permalink
Remove superfluos params of trigger method
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 4, 2024
1 parent d2ff9b4 commit 93f9582
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions asset/js/widget/ActionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ define(["../notjQuery"], function (notjQuery) {
if (activeItems.length === 1
&& toActiveItems.length === 0
) {
notjQuery(this.list).trigger(
'all-deselected',
{target: target, actionListItem: activeItems[0]}
);
notjQuery(this.list).trigger('all-deselected');

this.clearSelection(toDeactivateItems);
this.addSelectionCountToFooter();
Expand Down Expand Up @@ -447,10 +444,7 @@ define(["../notjQuery"], function (notjQuery) {
}

if (this.lastTimeoutId === null) { // trigger once, when just started selecting list items
notjQuery(this.list).trigger(
'selection-start',
{actionListItem: activeItems[0]}
);
notjQuery(this.list).trigger('selection-start');
}

clearTimeout(this.lastTimeoutId);
Expand All @@ -459,10 +453,7 @@ define(["../notjQuery"], function (notjQuery) {

// TODO: maybe we need a property to know if a req is in process

notjQuery(this.list).trigger(
'load-selection',
{url: url, actionListItem: activeItems[0]}
);
notjQuery(this.list).trigger('selection-end', {url: url});
}, 250);
}

Expand Down

0 comments on commit 93f9582

Please sign in to comment.