static: fix playground share

Change-Id: I5decba3efb750e32fbc07ac1093cd37a00b65912
Reviewed-on: https://go-review.googlesource.com/36488
Reviewed-by: Chris Broadfoot <cbro@golang.org>
This commit is contained in:
Chris Broadfoot 2017-02-07 10:29:28 -08:00
parent b56ef30191
commit 19c96be7c4
2 changed files with 6 additions and 2 deletions

View File

@ -440,7 +440,9 @@ function PlaygroundOutput(el) {
if (opts.shareURLEl) { if (opts.shareURLEl) {
shareURL = $(opts.shareURLEl).hide(); shareURL = $(opts.shareURLEl).hide();
} }
$(opts.shareEl).click(share); $(opts.shareEl).click(function() {
share();
});
} }
if (opts.toysEl !== null) { if (opts.toysEl !== null) {

View File

@ -2650,7 +2650,9 @@ function PlaygroundOutput(el) {
if (opts.shareURLEl) { if (opts.shareURLEl) {
shareURL = $(opts.shareURLEl).hide(); shareURL = $(opts.shareURLEl).hide();
} }
$(opts.shareEl).click(share); $(opts.shareEl).click(function() {
share();
});
} }
if (opts.toysEl !== null) { if (opts.toysEl !== null) {