From 2aec375bee980a0195e3cab8a6fb962d844a7e08 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Fri, 17 Feb 2023 20:53:57 -0700 Subject: [PATCH] Driveby: getItem(x) vs getItems()[x] --- core/wfc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/wfc.js b/core/wfc.js index 13ef6cde..fe16f7ea 100644 --- a/core/wfc.js +++ b/core/wfc.js @@ -116,7 +116,7 @@ exports.getModule = class WaitingForCallerModule extends MenuModule { ); if (nodeStatusSelectionView) { - const item = nodeStatusView.getItems()[index]; + const item = nodeStatusView.getItem(index); this._updateNodeStatusSelection(nodeStatusSelectionView, item); } } @@ -200,7 +200,7 @@ exports.getModule = class WaitingForCallerModule extends MenuModule { if (nodeStatusView && nodeStatusSelectionView) { nodeStatusView.on('index update', index => { - const item = nodeStatusView.getItems()[index]; + const item = nodeStatusView.getItem(index); this._updateNodeStatusSelection( nodeStatusSelectionView, item @@ -405,7 +405,7 @@ exports.getModule = class WaitingForCallerModule extends MenuModule { if (nodeStatusSelectionView) { const nodeStatusView = this.getView('main', MciViewIds.main.nodeStatus); if (nodeStatusView) { - const item = nodeStatusView.getItems()[this.selectedNodeStatusIndex]; + const item = nodeStatusView.getItem(this.selectedNodeStatusIndex); this._updateNodeStatusSelection(nodeStatusSelectionView, item); } } @@ -596,7 +596,7 @@ exports.getModule = class WaitingForCallerModule extends MenuModule { MciViewIds.main.selectedNodeStatusInfo ); if (nodeStatusSelectionView) { - const item = nodeStatusView.getItems()[0]; + const item = nodeStatusView.getItem(0); this._updateNodeStatusSelection(nodeStatusSelectionView, item); } }