2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

svg.js: workaround a flex.js crash (Forum #101749)

git-svn-id: https://svn.fhem.de/fhem/trunk@23428 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-12-27 22:07:20 +00:00
parent 9e23558261
commit 575ca9b76c

View File

@ -410,8 +410,10 @@ svg_init_one(embed, svg)
return;
svg_initialized[sid] = true;
$("text.legend", svg).click(function(e){sv_menu(e, embed)});
for(var i in svgCallback)
for(var i in svgCallback) {
if(!svg.getAttribute) svg.getAttribute = function(){ return true }; // fix for flex.js crash
svgCallback[i](svg);
}
}
function