Commit 31d35a68 by Peter Holmberg

rename

parent 13e6d2c5
...@@ -20,7 +20,7 @@ interface ValueFormatterIndex { ...@@ -20,7 +20,7 @@ interface ValueFormatterIndex {
// Globals & formats cache // Globals & formats cache
let categories: ValueFormatCategory[] = []; let categories: ValueFormatCategory[] = [];
const index: ValueFormatterIndex = {}; const index: ValueFormatterIndex = {};
let hasBuildIndex = false; let hasBuiltIndex = false;
export function toFixed(value: number, decimals?: number): string { export function toFixed(value: number, decimals?: number): string {
if (value === null) { if (value === null) {
...@@ -128,11 +128,11 @@ function buildFormats() { ...@@ -128,11 +128,11 @@ function buildFormats() {
} }
} }
hasBuildIndex = true; hasBuiltIndex = true;
} }
export function getValueFormat(id: string): ValueFormatter { export function getValueFormat(id: string): ValueFormatter {
if (!hasBuildIndex) { if (!hasBuiltIndex) {
buildFormats(); buildFormats();
} }
...@@ -140,7 +140,7 @@ export function getValueFormat(id: string): ValueFormatter { ...@@ -140,7 +140,7 @@ export function getValueFormat(id: string): ValueFormatter {
} }
export function getValueFormatterIndex(): ValueFormatterIndex { export function getValueFormatterIndex(): ValueFormatterIndex {
if (!hasBuildIndex) { if (!hasBuiltIndex) {
buildFormats(); buildFormats();
} }
...@@ -148,7 +148,7 @@ export function getValueFormatterIndex(): ValueFormatterIndex { ...@@ -148,7 +148,7 @@ export function getValueFormatterIndex(): ValueFormatterIndex {
} }
export function getUnitFormats() { export function getUnitFormats() {
if (!hasBuildIndex) { if (!hasBuiltIndex) {
buildFormats(); buildFormats();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment