Bind tag functions to the tagFunctions object so it's easier to cross-reference tags
This commit is contained in:
parent
0eb6a0ef97
commit
5a2948d8a9
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue