Sao.common.debounce shouldn't be used with function explicitely bounded
We're currently only using this pattern once: https://foss.heptapod.net/tryton/tryton/-/blob/b71b2417c4bca45495572431e83985a469ade54c/sao/src/view/tree.js#L1006
But it does not work because calling bind(this)
on the function makes it a different object every time and thus debounce
does not work.
Currently the solution I found is to stop calling bind
and passing this
as an argument to the function. But it does not seem satisfactory.
Edited by Nicolas Évrard