Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup in popup #6

Merged
merged 2 commits into from Feb 5, 2019
Merged

Popup in popup #6

merged 2 commits into from Feb 5, 2019

Conversation

exdis
Copy link
Member

@exdis exdis commented Feb 5, 2019

No description provided.

@@ -69,6 +69,11 @@ class Popup {
this.el = document.createElement('div');
this.el.className = 'discovery-view-popup';

Popup.els = Popup.els || new Set();
Popup.els.add(this.el);
Copy link
Member

Choose a reason for hiding this comment

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

Why we need this for?

Popup.els = Popup.els || new Set();
Popup.els.add(this.el);

Popup.elQueue = Popup.elQueue || new Set();
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to make it public? Maybe local variable instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe it does make sense. I'll change this.

@@ -119,6 +124,12 @@ class Popup {
const availWidthLeft = box.left - viewport.right - 3;
const availWidthRight = viewport.right - box.left - 3;

[...Popup.els]
Copy link
Member

Choose a reason for hiding this comment

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

Not sure I understand what happens here...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, that was experiments. Forgot to remove.

@lahmatiy lahmatiy merged commit c20f0c3 into discoveryjs:master Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants