finishInitialization
This commit is contained in:
1 parent
3c18100ae0
commit
4d27e744c7
2 files changed
+3
-5
No files matched your search
Binary file not shown.
+3
-5
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user