This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Templates inside SVG won't work in polymer-1.0 without some monkeypatching. | |
(function(){ | |
var doc = document.currentScript.ownerDocument; | |
var root = doc.querySelector('dom-module > template').content; | |
var templates = root.querySelectorAll('svg template'); | |
var el, template, attribs, attrib, count, child, content; | |
for (var i=0; i<templates.length; i++) { | |
el = templates[i]; | |
template = el.ownerDocument.createElement('template'); | |
el.parentNode.insertBefore(template, el); |