Merge pull request #7140 from liusy182/url-fix

fix a bug in navigation-controller where string is used as object
This commit is contained in:
Cheng Zhao 2016-09-12 14:46:05 +09:00 committed by GitHub
commit 9a56959647

View file

@ -49,9 +49,10 @@ var NavigationController = (function () {
// Normal navigation. Clear history.
this.history = this.history.slice(0, this.currentIndex + 1)
currentEntry = this.history[this.currentIndex]
if ((currentEntry != null ? currentEntry.url : void 0) !== url) {
if (currentEntry !== url) {
this.currentIndex++
return this.history.push(url)
this.history.push(url)
}
}
})