All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] website: footer.html: use 1.7.1 release of clipboard.js
@ 2018-04-28  7:31 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2018-04-28  7:31 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=6e0f3912e8eb0f59824d2c5d567f599090243044
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The clipboard javascript code causes an error:

Uncaught TypeError: Illegal constructor
    at buildroot.js:58

Which is caused by a recent change in upstream clipboard.js:

https://github.com/zenorocha/clipboard.js/releases/tag/v2.0.0

Changes constructor from new Clipboard() to new ClipboardJS()

The issue was that we were using the master version of clipboard.js instead
of a specific release.  Fix it by using the 1.7.1 version (latest release
before the constructor change) instead.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 docs/website/footer.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/website/footer.html b/docs/website/footer.html
index 279c8b1b5c..60a8872f77 100644
--- a/docs/website/footer.html
+++ b/docs/website/footer.html
@@ -1,6 +1,6 @@
 	<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
 	<script src="https://oss.maxcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
-	<script src="https://cdn.rawgit.com/zenorocha/clipboard.js/master/dist/clipboard.min.js"></script>
+	<script src="https://cdn.rawgit.com/zenorocha/clipboard.js/v2.0.0/dist/clipboard.min.js"></script>
 	<script type="text/javascript" src="js/buildroot.js"></script>
 </body>
 </html>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-28  7:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-28  7:31 [Buildroot] [git commit] website: footer.html: use 1.7.1 release of clipboard.js Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.