2016-01-27 25 views

回答

1

修正了它!

找到答案@https://github.com/webcomponents/webcomponentsjs/issues/192 對於運行到這個問題的人,這大約是目前的工作由RD-secretstuff:

// include this after webcomponents.js 
// if the shadow dom polyfill is used... 
if (window.ShadowDOMPolyfill) 
{ 
    var SVGElement = document.createElementNS("http://www.w3.org/2000/svg", "g"); 
    SVGElement.__proto__.getTransformToElement = function getTransformToElement(p_Element) 
    { 
     return window.ShadowDOMPolyfill.unwrap(this).getTransformToElement(window.ShadowDOMPolyfill.unwrap(p_Element)); 
    }; 
}