(hash)
| 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') |
no test coverage detected