Skip to content

Instantly share code, notes, and snippets.

@mrandrewmills
Last active July 1, 2016 10:51
Show Gist options
  • Save mrandrewmills/59730be0725c03cf340fef4e822a684d to your computer and use it in GitHub Desktop.
Save mrandrewmills/59730be0725c03cf340fef4e822a684d to your computer and use it in GitHub Desktop.
possible 508 fix for function K(a) in JWPlayer's Sharing plugin
// improved (added line 10)
function k(a) {
var b = i("div", ["jw-sharing-row", "jw-sharing-" + a])
, c = i("span", ["jw-sharing-svg-row-icon", "jw-sharing-icon-" + a])
, d = i("span", ["jw-sharing-cell"], c);
b.appendChild(d);
var e = i("textarea", ["jw-sharing-text"]);
return new u(e).on("click tap", l, e),
e.setAttribute("readonly", "true"),
e.setAttribute("title", a)
e.addEventListener("copy", p),
e.addEventListener("cut", p),
b.appendChild(e),
b
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment