Skip to content

Commit

Permalink
bones_ui_component: optimize _getUIComponent.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Sep 16, 2024
1 parent dac2913 commit 5503240
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/bones_ui_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,8 @@ abstract class UIComponent extends UIEventHandler {
}

if (uiComponent == null) {
for (var uiRootComponent in UIRootComponent.getInstances()) {
var uiRootComponents = UIRootComponent.getInstances();
for (var uiRootComponent in uiRootComponents.reversed) {
if (uiRootComponent == uiRoot) continue;

uiComponent = caller(uiRootComponent);
Expand Down

0 comments on commit 5503240

Please sign in to comment.