From 37debc55cfa882d08d43d8de4eebefd394aa9d5f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 30 Jan 2020 16:22:01 +0100 Subject: [PATCH] finalizing --- ChartsSpace/TimeMachine.js | 7 +++---- ChartsSpace/TimelineChart.js | 9 ++++++--- Scales/TimeFrameScale.js | 3 +++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChartsSpace/TimeMachine.js b/ChartsSpace/TimeMachine.js index fb656eda9..2a2bc8ff8 100644 --- a/ChartsSpace/TimeMachine.js +++ b/ChartsSpace/TimeMachine.js @@ -92,15 +92,14 @@ function newTimeMachine () { } thisObject.timelineCharts = undefined - timelineChartsMap = undefined - thisObject.fitFunction = undefined - thisObject.container.finalize() thisObject.container = undefined - thisObject.payload = undefined + mouse = undefined + timelineChartsMap = undefined + timeMachineCoordinateSystem = undefined } function finalizeTimeScale () { diff --git a/ChartsSpace/TimelineChart.js b/ChartsSpace/TimelineChart.js index 32558abba..37df76eea 100644 --- a/ChartsSpace/TimelineChart.js +++ b/ChartsSpace/TimelineChart.js @@ -32,7 +32,6 @@ function newTimelineChart () { let timelineChartCoordinateSystem = newCoordinateSystem() let layersPanel - let layersPanelHandle let onViewportPositionChangedEventSuscriptionId @@ -81,13 +80,17 @@ function newTimelineChart () { canvas.chartSpace.viewport.eventHandler.stopListening(onViewportZoomChangedEventSuscriptionId) thisObject.container.eventHandler.stopListening(onMouseOverEventSuscriptionId) thisObject.container.eventHandler.stopListening(onMouseNotOverEventSuscriptionId) - thisObject.container.finalize() thisObject.container = undefined - thisObject.payload = undefined + mouse = undefined logger = undefined + + timeMachineCoordinateSystem = undefined + timelineChartCoordinateSystem = undefined + layersPanel = undefined + layersPanelHandle = undefined } function finalizeLayersManager () { diff --git a/Scales/TimeFrameScale.js b/Scales/TimeFrameScale.js index c685ba88c..7354b7a8f 100644 --- a/Scales/TimeFrameScale.js +++ b/Scales/TimeFrameScale.js @@ -67,6 +67,9 @@ function newTimeFrameScale () { thisObject.container = undefined thisObject.fitFunction = undefined thisObject.payload = undefined + + limitingContainer = undefined + mouse = undefined } function initialize (pLimitingContainer) {