Skip to content

Commit

Permalink
use brackets in "is"
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Sep 1, 2024
1 parent be64fde commit 9219223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/containers/Collapsible.hx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class CollapsibleBuilder extends CompositeBuilder {
var parent = _collapsible.parentComponent;
// TODO: better way to do this??
while (parent != null) {
if (parent.hasClass("collapsible-content") && parent.parentComponent != null && parent.parentComponent is Collapsible) {
if (parent.hasClass("collapsible-content") && parent.parentComponent != null && (parent.parentComponent is Collapsible)) {
depth++;
}
parent = parent.parentComponent;
Expand Down

0 comments on commit 9219223

Please sign in to comment.