Skip to content

Commit 93f9582

Browse files
Remove superfluos params of trigger method
1 parent d2ff9b4 commit 93f9582

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

asset/js/widget/ActionList.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ define(["../notjQuery"], function (notjQuery) {
120120
if (activeItems.length === 1
121121
&& toActiveItems.length === 0
122122
) {
123-
notjQuery(this.list).trigger(
124-
'all-deselected',
125-
{target: target, actionListItem: activeItems[0]}
126-
);
123+
notjQuery(this.list).trigger('all-deselected');
127124

128125
this.clearSelection(toDeactivateItems);
129126
this.addSelectionCountToFooter();
@@ -447,10 +444,7 @@ define(["../notjQuery"], function (notjQuery) {
447444
}
448445

449446
if (this.lastTimeoutId === null) { // trigger once, when just started selecting list items
450-
notjQuery(this.list).trigger(
451-
'selection-start',
452-
{actionListItem: activeItems[0]}
453-
);
447+
notjQuery(this.list).trigger('selection-start');
454448
}
455449

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

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

462-
notjQuery(this.list).trigger(
463-
'load-selection',
464-
{url: url, actionListItem: activeItems[0]}
465-
);
456+
notjQuery(this.list).trigger('selection-end', {url: url});
466457
}, 250);
467458
}
468459

0 commit comments

Comments
 (0)