Update DOM manipulation constructor docs
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
I don't think our DOM manipulation docs promote the best guideline to referencing elements in classes. We should discuss a review approach?
The docs itself actually links to an example that doesn't do what it is claiming we should do and does it in a better way.
Draft MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11416
Edited by 🤖 GitLab Bot 🤖