Get rid of the HMxcImage undefined py warnings
This commit is contained in:
parent
606e8a25df
commit
ffc8a13db6
@ -23,6 +23,8 @@ HImage {
|
||||
|
||||
|
||||
function update() {
|
||||
if (! py) return // component was destroyed
|
||||
|
||||
let w = sourceSize.width || width
|
||||
let h = sourceSize.height || height
|
||||
|
||||
@ -31,8 +33,6 @@ HImage {
|
||||
return
|
||||
}
|
||||
|
||||
if (! image) return // if it was destroyed
|
||||
|
||||
if (! isMxc) {
|
||||
if (source !== mxc) source = mxc
|
||||
show = image.visible
|
||||
|
Loading…
Reference in New Issue
Block a user