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

Method selectItemSlot

app/views/play/menu/InventoryModal.js:425–432  ·  view source on GitHub ↗
(slotEl)

Source from the content-addressed store, hash-verified

423 // - Select/equip higher-level, all encompassing methods the callbacks all use
424
425 selectItemSlot (slotEl) {
426 this.clearSelection()
427 slotEl.addClass('selected')
428 const selectedSlotItemID = slotEl.find('.item').data('item-id')
429 const item = this.items.get(selectedSlotItemID)
430 if (item) { this.showItemDetails(item, 'unequip') }
431 return this.onSelectionChanged()
432 }
433
434 selectUnequippedItem (itemEl) {
435 this.clearSelection()

Callers 2

onItemSlotClickMethod · 0.95

Calls 5

clearSelectionMethod · 0.95
showItemDetailsMethod · 0.95
onSelectionChangedMethod · 0.95
dataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected