Skip to content

Commit d96cef8

Browse files
committed
Fix vega expressions
1 parent b398f20 commit d96cef8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/vegaexpr.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import { MODULE_NAME, MODULE_VERSION } from './version';
1515
// manually create and bind that locale context to the format function.
1616
const locale = vegaFormat.defaultLocale();
1717
const dataflow = { context: { dataflow: { locale: () => locale } } };
18-
vegaFunctions.functionContext.format =
19-
vegaFunctions.functionContext.format.bind(dataflow);
18+
for (const name in vegaFunctions.functionContext) {
19+
vegaFunctions.functionContext[name] =
20+
vegaFunctions.functionContext[name].bind(dataflow);
21+
}
2022

2123
export class VegaExprModel extends WidgetModel {
2224
defaults() {

0 commit comments

Comments
 (0)