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

Method refreshViews

app/views/ladder/LadderView.js:358–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356 }
357
358 refreshViews () {
359 if (this.destroyed || application.userIsIdle) { return }
360 this.lastRefreshTime = new Date()
361 if (this.ladderTab != null) {
362 this.ladderTab.refreshLadder()
363 }
364 if ((this.myMatchesTab != null ? this.myMatchesTab.refreshMatches : undefined) != null) {
365 this.myMatchesTab.refreshMatches(this.refreshDelay)
366 }
367 return (this.simulateTab != null ? this.simulateTab.refresh() : undefined)
368 }
369
370 onIdleChanged (e) {
371 if (!e.idle) { return this.fetchSessionsAndRefreshViews() }

Callers

nothing calls this directly

Calls 3

refreshMatchesMethod · 0.80
refreshMethod · 0.80
refreshLadderMethod · 0.45

Tested by

no test coverage detected