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:
commit
9a56959647
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue