From 180a77e671dce13272c13102af40b2b1c46592c9 Mon Sep 17 00:00:00 2001 From: liusy182 Date: Thu, 8 Sep 2016 21:31:42 +0800 Subject: [PATCH] fix a minor bug in navigation-controller where a string is used as an object --- lib/browser/api/navigation-controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/browser/api/navigation-controller.js b/lib/browser/api/navigation-controller.js index 1260cfb3dac7..bda8474d8932 100644 --- a/lib/browser/api/navigation-controller.js +++ b/lib/browser/api/navigation-controller.js @@ -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 != null ? currentEntry : void 0) !== url) { this.currentIndex++ - return this.history.push(url) + this.history.push(url) } } })