You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/01/03 11:55:48 UTC
[royale-asjs] branch develop updated: (Hopefully) Fix model load refactor breaking Image
This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new c405ea0 (Hopefully) Fix model load refactor breaking Image
c405ea0 is described below
commit c405ea02686e9f459be8560cc6d847b499cc7287
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Mon Jan 3 13:54:07 2022 +0200
(Hopefully) Fix model load refactor breaking Image
---
.../Core/src/main/royale/org/apache/royale/core/ImageViewBase.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
index 832a952..e9ff556 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
@@ -98,7 +98,7 @@ package org.apache.royale.core
IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
}
- _model = value.getBeadByType(IImageModel) as IImageModel;
+ _model = (value as IStrandWithModel).model as IImageModel;
_model.addEventListener("urlChanged",handleUrlChange);
handleUrlChange(null);
}