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 0eb6a0ef97
commit 5a2948d8a9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

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