Skip to content

Issue 710: refactor js - #711

Merged
jzohrab merged 4 commits into
developfrom
iss_699_refactor_js
Jul 23, 2026
Merged

Issue 710: refactor js#711
jzohrab merged 4 commits into
developfrom
iss_699_refactor_js

Conversation

@jzohrab

@jzohrab jzohrab commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

For issue #710

@jzohrab jzohrab added this to Lute-v3 Jul 23, 2026
@jzohrab jzohrab moved this to Todo in Lute-v3 Jul 23, 2026
@jzohrab jzohrab moved this from Todo to In Progress in Lute-v3 Jul 23, 2026
Comment thread lute/static/js/lute-popups.js Outdated
else {
const pop = topWin.open(url, 'dictwin', settings);
topWin.lute_popup_window = pop;
if (!topWin.lute_popup_windows) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcomachado - I'm not clear why we need the lute_popup_windows array, since there's only one popup open at a time. Thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcomachado - I'm not clear why we need the lute_popup_windows array, since there's only one popup open at a time. Thoughts?

This part it's not necessary, that was my mistake. When I first started on this task, I was trying to reuse one popup per external dictionary (which would require tracking them in an array). Later, I changed it to use a single external popup (dictwin), but forgot to clean up the array tracking logic.

I will update the logic to only track the active window (topWin.lute_popup_window) and remove the redundant lute_popup_windows array.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcomachado - no problem, I actually have the branch open already on my machine, it's a quick fix. I'll take care of it, thanks!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how I missed it in the initial code review, my mistake on that side anyway. Cheers!

@jzohrab jzohrab self-assigned this Jul 23, 2026
@jzohrab

jzohrab commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

Just a question to @marcomachado -- otherwise this PR should be good to go.

@jzohrab
jzohrab merged commit e6924c6 into develop Jul 23, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Lute-v3 Jul 23, 2026
@jzohrab
jzohrab deleted the iss_699_refactor_js branch July 23, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants