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:
parent
9e23558261
commit
575ca9b76c
@ -410,9 +410,11 @@ 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
|
||||
svg_init(par) // also called directly from perl, in race condition
|
||||
|
Loading…
Reference in New Issue
Block a user