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

Method onTabClicked

app/views/play/modal/PlayItemsModal.js:226–232  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

224 }
225
226 onTabClicked (e) {
227 this.playSound('game-menu-tab-switch')
228 const nano = $($(e.target).attr('href')).find('.nano')
229 nano.nanoScroller({ alwaysVisible: true })
230 this.paneNanoContent = nano.find('.nano-content')
231 return this.showVisibleItemImages()
232 }
233
234 showVisibleItemImages () {
235 // dynamically load visible items when the user scrolls enough to see them

Callers

nothing calls this directly

Calls 1

showVisibleItemImagesMethod · 0.95

Tested by

no test coverage detected