MCPcopy Index your code
hub / github.com/codecombat/codecombat / updateHash

Method updateHash

app/views/courses/TeacherClassView.js:520–530  ·  view source on GitHub ↗
(hash)

Source from the content-addressed store, hash-verified

518 }
519
520 updateHash (hash) {
521 if (application.testing) { return }
522 window.location.hash = hash
523 if ((hash === '#course-progress-tab') && !this.startTimeOnUnitProgress) {
524 return this.startTimeOnUnitProgress = new Date()
525 } else if (this.startTimeOnUnitProgress) {
526 this.timeSpentOnUnitProgress = new Date() - this.startTimeOnUnitProgress
527 this.startTimeOnUnitProgress = null
528 return this.trackTimeSpentOnUnitProgress()
529 }
530 }
531
532 trackClickEvent (e) {
533 const eventAction = $(e.currentTarget).data('event-action')

Callers 2

constructorMethod · 0.95
onClickNavTabLinkMethod · 0.95

Calls 1

Tested by

no test coverage detected