This is an automated email from the ASF dual-hosted git repository. harbs 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 2c74d69 It seems like it's legal for a model to not be an IBeadModel 2c74d69 is described below commit 2c74d69d176dd5706f3fb9ba3815bdca3919d039 Author: Harbs <ha...@in-tools.com> AuthorDate: Sun Jan 2 11:55:09 2022 +0200 It seems like it's legal for a model to not be an IBeadModel --- .../src/main/royale/org/apache/royale/core/HTMLElementWrapper.as | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/HTMLElementWrapper.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/HTMLElementWrapper.as index 6387550..b284e63 100644 --- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/HTMLElementWrapper.as +++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/HTMLElementWrapper.as @@ -181,10 +181,11 @@ package org.apache.royale.core { if (_model != value) { - assert(value is IBeadModel,"Only an IBeadModel can be assigned as a model"); _model = value as IBeadModel; - addBead(_model); - sendStrandEvent(this,"modelChanged"); + + if(value is IBead){ + addBead(_model); + } } }