Skip to content

Instantly share code, notes, and snippets.

View PixievoltNo1's full-sized avatar

Pixievolt No. 1 PixievoltNo1

View GitHub Profile
@PixievoltNo1
PixievoltNo1 / Vex contributions.markdown
Last active September 28, 2017 09:23
Contributions to HubSpot's vex library - http://github.hubspot.com/vex/
  • PR #233: Fixed an animation bug affecting IE 11
  • PR #238: Added Autoprefixer to the Gruntfile and cut down CSS file sizes (after getting the go-ahead in issue #236)
  • PR #241: Documentation improvements
// Shortcut functions makeSVGElem & makeUseElem for making SVG elements
var svgNS = "http://www.w3.org/2000/svg";
function makeSVGElem(name) { return document.createElementNS(svgNS, name); }
function makeUseElem(url) {
var elem = makeSVGElem("use");
elem.setAttributeNS("http://www.w3.org/1999/xlink", "href", url);
return elem;
}
// Workaround for jQuery bug #11166 to allow setting viewBox