commit | 70de39a4d716e3afb7c471f01e7ecd5c45131dd0 | [log] [tgz] |
---|---|---|
author | Jamal Carvalho <jamal@golang.org> | Tue Aug 31 18:09:24 2021 +0000 |
committer | Jamal Carvalho <jamal@golang.org> | Wed Sep 01 14:22:37 2021 +0000 |
tree | 8b248b562e83e4f8406a3a2598a6c1746a07fb9b | |
parent | 7ec8998fed458516d9c5a4c3635f441e43b3aa99 [diff] |
static: refactor JS imports This change moves the instantiation of element controllers from a shared file to prevent duplicate listeners from being attached to elements on the page when the shared code is bundled into multiple JS output files. Change-Id: I50c467dfb9cf574872f1722c5a53f686a7bf5bcb Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346431 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.