|
@@ -4893,8 +4893,14 @@ window.Modernizr = function(n, e, t) {
|
|
|
this.emit("update.controls"),
|
|
|
this.tourIsPlaying)
|
|
|
return this.atEndOfTour() && !this.endlessLoop ? (this.tourInProgress = !1,
|
|
|
- this.stopTour(true),
|
|
|
- this.emit(p.TourEnd),
|
|
|
+ void this.awaitCompletion(function() {
|
|
|
+ this.transitionStage = y.Interlude,
|
|
|
+ this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))
|
|
|
+ }
|
|
|
+ .bind(this), function(){
|
|
|
+ this.stopTour(true),
|
|
|
+ this.emit(p.TourEnd)
|
|
|
+ }.bind(this)),
|
|
|
void (this.player.mode === c.PANORAMA && this.model.fadePanoMarkers(a.panorama.markerOpacity))) : void this.awaitCompletion(function() {
|
|
|
this.transitionStage = y.Interlude,
|
|
|
this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))
|