From 5a2948d8a9d07dea5a8eaa2d105724988bca0f7b Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 1 Jun 2020 19:41:05 +0300 Subject: [PATCH] Bind tag functions to the tagFunctions object so it's easier to cross-reference tags --- backend/src/plugins/Tags.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/plugins/Tags.ts b/backend/src/plugins/Tags.ts index 73a0e583..43057703 100644 --- a/backend/src/plugins/Tags.ts +++ b/backend/src/plugins/Tags.ts @@ -222,6 +222,10 @@ export class TagsPlugin extends ZeppelinPlugin { return ""; }, }; + + for (const [name, fn] of Object.entries(this.tagFunctions)) { + this.tagFunctions[name] = (fn as any).bind(this.tagFunctions); + } } onUnload() {