We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b398f20 commit d96cef8Copy full SHA for d96cef8
js/vegaexpr.ts
@@ -15,8 +15,10 @@ import { MODULE_NAME, MODULE_VERSION } from './version';
15
// manually create and bind that locale context to the format function.
16
const locale = vegaFormat.defaultLocale();
17
const dataflow = { context: { dataflow: { locale: () => locale } } };
18
-vegaFunctions.functionContext.format =
19
- vegaFunctions.functionContext.format.bind(dataflow);
+for (const name in vegaFunctions.functionContext) {
+ vegaFunctions.functionContext[name] =
20
+ vegaFunctions.functionContext[name].bind(dataflow);
21
+}
22
23
export class VegaExprModel extends WidgetModel {
24
defaults() {
0 commit comments