mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fix issue #1832
This commit is contained in:
parent
697e5a0ab3
commit
0cf16e157c
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,7 @@ module.exports = class InventoryModal extends ModalView
|
||||||
|
|
||||||
onUnequippedItemClick: (e) ->
|
onUnequippedItemClick: (e) ->
|
||||||
return if @justDoubleClicked
|
return if @justDoubleClicked
|
||||||
|
return if @justClickedEquipItemButton
|
||||||
itemEl = $(e.target).closest('.item')
|
itemEl = $(e.target).closest('.item')
|
||||||
#@playSound 'menu-button-click'
|
#@playSound 'menu-button-click'
|
||||||
@selectUnequippedItem(itemEl)
|
@selectUnequippedItem(itemEl)
|
||||||
|
@ -270,6 +271,8 @@ module.exports = class InventoryModal extends ModalView
|
||||||
itemEl = $(e.target).closest('.item')
|
itemEl = $(e.target).closest('.item')
|
||||||
@selectUnequippedItem(itemEl)
|
@selectUnequippedItem(itemEl)
|
||||||
@equipSelectedItem()
|
@equipSelectedItem()
|
||||||
|
@justClickedEquipItemButton = true
|
||||||
|
_.defer => @justClickedEquipItemButton = false
|
||||||
|
|
||||||
#- Select/equip higher-level, all encompassing methods the callbacks all use
|
#- Select/equip higher-level, all encompassing methods the callbacks all use
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue