From efcf137867be05e75590dbcba54c56a5d9868dc6 Mon Sep 17 00:00:00 2001 From: GabbasovDinar Date: Wed, 24 Oct 2018 06:49:52 +0000 Subject: [PATCH] [IMP] binding of context (this) to an object closes odoo/odoo#37893 X-original-commit: fb3522b54903b19aa42cb3fe23e1a029b4ccfc14 Signed-off-by: Romain Libert (rli) --- addons/bus/static/src/js/crosstab_bus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/bus/static/src/js/crosstab_bus.js b/addons/bus/static/src/js/crosstab_bus.js index 9d0e413ab94..b939ecab3a5 100644 --- a/addons/bus/static/src/js/crosstab_bus.js +++ b/addons/bus/static/src/js/crosstab_bus.js @@ -228,7 +228,7 @@ var CrossTabBus = Longpolling.extend({ this._callLocalStorage('setItem', 'lastPresence', this._lastPresenceTime); } - this._heartbeatTimeout = setTimeout(this._heartbeat, hbPeriod); + this._heartbeatTimeout = setTimeout(this._heartbeat.bind(this), hbPeriod); }, /** * Check with the local storage if the current tab is the master tab.