From e10ba752ef9ec377d4b6b0007a2a16ce9e4d4233 Mon Sep 17 00:00:00 2001 From: "Niko H." Date: Tue, 24 Sep 2024 10:04:10 +0300 Subject: [PATCH] bugfix added missing method isInEquipList as fallback compatibility bugfix added missing method isInEquipList, that was implemented only in EquipmentV3. This caused mouse right "contextmenu" to open when error occurred. Equipment.getUI().isInEquipList() can return undefined otherwise. --- src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js | 7 +++++++ src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js b/src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js index 7b22d440..9fa08eba 100644 --- a/src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js +++ b/src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js @@ -776,6 +776,13 @@ define(function(require) return num; } + /** + * EquipmentV3 has the supported function. This is for compatibility with EquipmentV1 + */ + EquipmentV1.isInEquipList = function() { + return 0; + } + /** * Method to define */ diff --git a/src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js b/src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js index f22f6fa9..238ceb11 100644 --- a/src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js +++ b/src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js @@ -776,6 +776,13 @@ define(function(require) return num; } + /** + * EquipmentV3 has the supported function. This is for compatibility with EquipmentV2 + */ + EquipmentV2.isInEquipList = function() { + return 0; + } + /** * Method to define */