finaleStepsInProgress

This commit is contained in:
Luis Fernando Molina committed 2018-02-20 14:13:51 +01:00
1 parent bb41c52030
commit e7d6ad597f
2 files changed
+14 -8

No files matched your search

Binary file not shown.
+14 -8
View File
@@ -38,6 +38,7 @@
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, chartLayersPanel, callBackFunction) {
let cursorCacheInProgress = false;
let finaleStepsInProgress = false;
datetime = pDatetime;
timePeriod = pTimePeriod;
@@ -82,20 +83,25 @@
if (dailyFile !== undefined) {
fileCursor = newFileCursor;
if (finaleStepsInProgress === false) {
recalculateScale(); // With any of the market files we can calculate the scale.
finaleStepsInProgress = true;
layerStatus = chartLayersPanel.getLayerStatus(chartLayersPanel.layerNames.OLIVIA_CANDLES);
fileCursor = newFileCursor;
recalculateCandles();
postitionViewPort();
recalculateScale(); // With any of the market files we can calculate the scale.
viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged);
canvas.eventHandler.listenToEvent("Drag Finished", onDragFinished);
layerStatus = chartLayersPanel.getLayerStatus(chartLayersPanel.layerNames.OLIVIA_CANDLES);
callBackFunction();
recalculateCandles();
postitionViewPort();
viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged);
canvas.eventHandler.listenToEvent("Drag Finished", onDragFinished);
callBackFunction();
}
}
}