From 4d27e744c7f8681155b90378bf8388f5d7f15609 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 20 Feb 2018 13:45:49 +0100 Subject: [PATCH] finishInitialization --- .vs/AAOlivia-Plotter/v15/.suo | Bin 17920 -> 17920 bytes Candlestick.js | 8 +++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.vs/AAOlivia-Plotter/v15/.suo b/.vs/AAOlivia-Plotter/v15/.suo index 4f44b157e129c2b6e47140321b53699dc4deee2d..762c3ed89debcff5083218eb54d9a5b139a59e64 100644 GIT binary patch delta 69 zcmZqZVQlDO+>pb>dg05|EgqW-nSL{~UU)crJCMn?!GhPC0RbX5>)C&1#t^#11OP%u B6Jr1X delta 85 zcmZqZVQlDO+>pb>8c=!6$7ORN({E8TsIf8ZLr|&VSoXt14}mR*?(r1G+~4Z ZF)%m**?vGS4-hj?7IbXee8Ap;2>={I6ovo* diff --git a/Candlestick.js b/Candlestick.js index 20926d6f7..5d4c7393f 100644 --- a/Candlestick.js +++ b/Candlestick.js @@ -50,8 +50,6 @@ let newMarketFile = fileCache.getFile(pTimePeriod); - recalculateScale(); // With any of the market files we can calculate the scale. - if (newMarketFile !== undefined && marketFile === undefined) { // if the file ready is the one we need then it and we dont have it yet, then we will continue here. marketFile = newMarketFile; @@ -72,13 +70,15 @@ if (dailyFile !== undefined) { - finishInitialization(); + callBackFunction(); } } function finishInitialization() { + recalculateScale(); // With any of the market files we can calculate the scale. + layerStatus = chartLayersPanel.getLayerStatus(chartLayersPanel.layerNames.OLIVIA_CANDLES); recalculateCandles(); @@ -87,8 +87,6 @@ viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged); canvas.eventHandler.listenToEvent("Drag Finished", onDragFinished); - callBackFunction(); - } }