Skip to content

Commit

Permalink
bugfix added missing method isInEquipList as fallback compatibility
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Sehrentos committed Sep 24, 2024
1 parent 4f91e28 commit e10ba75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/UI/Components/Equipment/EquipmentV1/EquipmentV1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
7 changes: 7 additions & 0 deletions src/UI/Components/Equipment/EquipmentV2/EquipmentV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit e10ba75

Please sign in to comment.