This commit is contained in:
laituan245 2015-02-18 16:12:19 +09:00
parent 697e5a0ab3
commit 0cf16e157c

View file

@ -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