[FIX] sale: propage new parameter to sub-function

Oversight of previous forward-port.
This commit is contained in:
Christophe Simonis
2019-06-03 20:10:34 +02:00
parent 43d133d504
commit 47fefea909
+5 -4
View File
@@ -40,16 +40,17 @@ var VariantMixin = {
if (!$parent.data('uniqueId')) {
$parent.data('uniqueId', _.uniqueId());
}
this._throttledGetCombinationInfo($parent.data('uniqueId'))(ev);
this._throttledGetCombinationInfo($parent.data('uniqueId'))(ev, params);
},
/**
* @see onChangeVariant
*
* @private
* @param {Event} ev
* @param {$.Element} [params.$container] force the used container
* @returns {Deferred}
*/
_getCombinationInfo: function (ev) {
_getCombinationInfo: function (ev, params) {
var self = this;
if ($(ev.target).hasClass('variant_custom_value')) {
@@ -578,8 +579,8 @@ var VariantMixin = {
_throttledGetCombinationInfo: _.memoize(function (uniqueId) {
var dropMisordered = new concurrency.DropMisordered();
var _getCombinationInfo = _.throttle(this._getCombinationInfo.bind(this), 500);
return function (ev) {
return dropMisordered.add(_getCombinationInfo(ev));
return function (ev, params) {
return dropMisordered.add(_getCombinationInfo(ev, params));
};
}),
/**