NEW4.01.00 · Released 29 April 2024
NEWfinPOWER Connect
Released in
4.01.00
29 April 2024
  1. Opened13 Dec 2023
  2. Closed13 Dec 2023
  3. Released29 Apr
Article 21005 Job J032631

HTML Widgets; User Dashboard; Updated to clear window.setTimout handles

Under certain circumstances, not calling window.clearTimeout in JavaScript is known to hold on to memory.

In an effort to minimise memory usage, when a window.setTimeout is called, a corresponding window.clearTimeout is now called in the timer function.

For example, instead of doing the following:

window.setTimeout(Record_Load, 1000);

The code will now ensure a window.clearTimeout is called, e.g.:

mRefreshTimer = window.setTimeout(function() {
  window.clearTimeout(mRefreshTimer);
  mRefreshTimer = null;
  
  Record_Load();
}, 1000);

The following HTML Widget has been updated:

  • HtmlWidget_UserDashboard1
    • Version: 1.09 (13/12/2023)