3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Bind tag functions to the tagFunctions object so it's easier to cross-reference tags

This commit is contained in:
Dragory 2020-06-01 19:41:05 +03:00
parent 3419ed1fa3
commit 7a79aff5d5

View file

@ -222,6 +222,10 @@ export class TagsPlugin extends ZeppelinPlugin<TConfigSchema> {
return ""; return "";
}, },
}; };
for (const [name, fn] of Object.entries(this.tagFunctions)) {
this.tagFunctions[name] = (fn as any).bind(this.tagFunctions);
}
} }
onUnload() { onUnload() {