Send a data object in $.trigger

There was a mistake in #299: the $.trigger() must take only one argument
for extraParameters. Sending another parameter causes NULL to be logged in
EventLogging for ulsPurpose.
This commit is contained in:
Amire80
2018-03-15 11:05:28 +02:00
parent 9019b7742f
commit 970d073efa

View File

@@ -235,8 +235,10 @@
this.$suggestion.val( '' );
this.$element.trigger(
'noresults.uls',
query,
this.options.ulsPurpose
{
query: query,
ulsPurpose: this.options.ulsPurpose
}
);
return;
}