From eba9d9d34aa31971285674e3d5bc79c9c0bebb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 5 Feb 2021 12:18:59 +0100 Subject: [PATCH] Fix `this` handling in Chat/Template.js --- files_wcf/js/Bastelstu.be/Chat/Template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files_wcf/js/Bastelstu.be/Chat/Template.js b/files_wcf/js/Bastelstu.be/Chat/Template.js index 04d0c73..389d344 100644 --- a/files_wcf/js/Bastelstu.be/Chat/Template.js +++ b/files_wcf/js/Bastelstu.be/Chat/Template.js @@ -4,7 +4,7 @@ * Use of this software is governed by the Business Source License * included in the LICENSE file. * - * Change Date: 2025-02-04 + * Change Date: 2025-02-05 * * On the date above, in accordance with the Business Source * License, use of this software will be governed by version 2 @@ -31,7 +31,7 @@ define(['WoltLabSuite/Core/Template'], function (_Template) { const templates = Object.assign({}, this.templates, variables.t || {}) variables.t = templates - return oldFetch(variables) + return oldFetch.call(this, variables); }.bind(this) } }