many small fixes from Intellij analysis

This commit is contained in:
zadam
2023-05-05 23:17:23 +02:00
parent 0af6f91d21
commit 6dfc72c065
41 changed files with 73 additions and 83 deletions

View File

@@ -517,7 +517,7 @@ export default class TabRowWidget extends BasicWidget {
draggabilly.on('dragEnd', _ => {
this.isDragging = false;
const finalTranslateX = parseFloat(tabEl.style.left, 10);
const finalTranslateX = parseFloat(tabEl.style.left);
tabEl.style.transform = `translate3d(0, 0, 0)`;
// Animate dragged tab back into its place
@@ -617,7 +617,10 @@ export default class TabRowWidget extends BasicWidget {
this.updateTab($tab, noteContext);
}
/** @param {NoteContext} noteContext */
/**
* @param {jQuery} $tab
* @param {NoteContext} noteContext
*/
async updateTab($tab, noteContext) {
if (!$tab.length) {
return;