You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function was originally written in an inline javascript style where embedded functions vs. member functions were favored for event handlers. Because the data structure of tator has increased, the function itself is quite complex containing a lot of nested logic.
In the case of multi videos, it is invoked multiple times often re-acquiring the same information for each video in a multi feed.
Suggestion is to make use of better coding practices, including:
Functional decomposition
Use of await syntax to avoid multiple nested promises.
Avoiding registration of application critical event handlers as anonymous lambda functions
This function was originally written in an inline javascript style where embedded functions vs. member functions were favored for event handlers. Because the data structure of tator has increased, the function itself is quite complex containing a lot of nested logic.
In the case of multi videos, it is invoked multiple times often re-acquiring the same information for each video in a multi feed.
Suggestion is to make use of better coding practices, including:
await
syntax to avoid multiple nested promises.tator/ui/src/js/annotation/annotation-page.js
Line 938 in c38dd2a
The text was updated successfully, but these errors were encountered: