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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -