MCPcopy Create free account
hub / github.com/codecombat/codecombat / onItemSlotClick

Method onItemSlotClick

app/views/play/menu/InventoryModal.js:379–384  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

377 // - Select/equip event handlers
378
379 onItemSlotClick (e) {
380 this.closePopover()
381 if (this.remainingRequiredEquipment != null ? this.remainingRequiredEquipment.length : undefined) { return } // Don't let them select a slot if we need them to first equip some require gear.
382 // @playSound 'menu-button-click'
383 return this.selectItemSlot($(e.target).closest('.item-slot'))
384 }
385
386 onUnequippedItemClick (e) {
387 this.closePopover()

Callers

nothing calls this directly

Calls 2

closePopoverMethod · 0.95
selectItemSlotMethod · 0.95

Tested by

no test coverage detected