Skip to content

Commit

Permalink
spelling / formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Apr 8, 2024
1 parent 1e951a2 commit 5dcb644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haxe/ui/RuntimeComponentBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ class RuntimeComponentBuilder {
//component.addScriptEvent(propName, propValue);
} else {
var propInfo = RTTI.getClassProperty(Type.getClassName(Type.getClass(component)), propName);
// if the property is a variant, we'll need to make sure (explicity) that it is a converted
// if the property is a variant, we'll need to make sure (explicitly) that it is a converted
// since the abstract wont exist at runtime, so it wont have the from, to, etc
if (propInfo != null && propInfo.propertyType == "variant") {
propValue = Variant.fromDynamic(propValue);
Reflect.setProperty(component, propName, propValue);
} else {
} else {
propValue = TypeConverter.convertFrom(propValue);
Reflect.setProperty(component, propName, propValue);
}
Expand Down

0 comments on commit 5dcb644

Please sign in to comment.