Update svgcanvas.js

This commit is contained in:
JFH
2021-05-22 20:34:07 +02:00
parent 5989a4cbd9
commit 460889688c

View File

@@ -207,7 +207,7 @@ class SvgCanvas {
this._storage.get(element).set(key, obj);
},
get: function (element, key) {
return this._storage.get(element).get(key);
return this._storage.get(element)?.get(key);
},
has: function (element, key) {
return this._storage.has(element) && this._storage.get(element).has(key);