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

More A Question Than An Issue Really - An Observation To Be Correctly - Iliakan, Please Explain #135

Closed
Annis-Monadjem opened this issue Aug 9, 2017 · 1 comment

Comments

@Annis-Monadjem
Copy link
Contributor

Annis-Monadjem commented Aug 9, 2017

@iliakan thanks for creating this site; it is really helpful to my learning js.

I'm not able to use Disqus comments at javascript.info and so I'm placing here mostly a question (it might turn out into an issue or perhaps a PR if you decide so which I'm not sure how to handle yet; my apologies). I'm really trying to understand the tutorial and 'playing around' with the code to grasp it. So please let me know how you want me to place future questions of this sort on javascript-tutorial-en.

So here is my question:
In the Drag'n'Drop with mouse events section in the very first and in the very last examples the code includes this one:

...
document.body.append(ball);
...

It seems to me that this line is redundant. After all ball is the id to one of the only two div's and so it is already part of the body hence it does not need any further appending. In my editor when I remove the above line i do not observe any difference in drag-n-drop behaviour of the ball. Let me know if I am not understanding anything. Thanks.

@iliakan
Copy link
Member

iliakan commented Aug 13, 2017

The ball may be somewhere else, positioned relative to other elements.

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

No branches or pull requests

2 participants