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