jquery - upgrade to Chrome 48 removes SVGGraphicsElement.getTransformToElement() -
after upgrading chrome version 48 - ever have used :
svggraphicselement.gettransformtoelement()
in js;
i getting js error :
typeerror: elem.gettransformtoelement not function(…)
how can fix 1 ?
fixed !
found answer @ https://github.com/webcomponents/webcomponentsjs/issues/192 running problem , current work around rd-secretstuff:
// include after webcomponents.js // if shadow dom polyfill 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)); }; }
Comments
Post a Comment