|
@@ -5314,15 +5314,15 @@ window.Modernizr = function(n, e, t) {
|
|
|
,
|
|
|
n.prototype.getMomentTour = function(destinationItem) {//add
|
|
|
var wholeMomentTour = window.MP_PREFETCHED_MODELDATA.momentTour || "walk"; //最外层
|
|
|
-
|
|
|
+
|
|
|
if(!destinationItem) return wholeMomentTour
|
|
|
else{
|
|
|
var currentLocation = this.model.getHeroDescriptorByIndex(destinationItem)//最内层。 如果有使用最内层
|
|
|
if(currentLocation.momentTour)return currentLocation.momentTour;
|
|
|
|
|
|
var currentLocation_ = this.model.heroLocations[destinationItem[0]];
|
|
|
- return currentLocation_.heroLocations ? currentLocation_.momentTour : wholeMomentTour; //如果有中间层,使用中间层,否则使用最外层
|
|
|
- }
|
|
|
+ return currentLocation_.momentTour || wholeMomentTour; //若中间层或最内层有就使用,否则使用最外层
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|