Article Details
| Id: | 21005 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 4.01.00 |
| Opened: | 13/12/2023 |
| Closed: | 13/12/2023 |
| Released: | 29/04/2024 |
| 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)