simplify logic

This commit is contained in:
liusy182 2016-09-08 21:36:39 +08:00
parent 180a77e671
commit 2c7690be45

View file

@ -50,7 +50,7 @@ var NavigationController = (function () {
this.history = this.history.slice(0, this.currentIndex + 1)
currentEntry = this.history[this.currentIndex]
if ((currentEntry != null ? currentEntry : void 0) !== url) {
if (currentEntry !== url) {
this.currentIndex++
this.history.push(url)
}