From 72b9a3a7485e57c81b0f0fc8586ae6350e5a9aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lau=C3=9Fmann?= Date: Mon, 22 Jul 2013 17:03:57 +0200 Subject: [PATCH] Update navigate.js The very first page should not be added to the history because this causes navHistory.length to be 1 and asides from inconsistencies with nav.eraseHistory => 0 this leads to nav.back always returning true which prevents Android back button from working correctly. --- src/navigate.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/navigate.js b/src/navigate.js index 376a149..a7cd035 100644 --- a/src/navigate.js +++ b/src/navigate.js @@ -45,7 +45,6 @@ angular.module('ajoslin.mobile-navigate') nav.onRouteSuccess = null; //Add a default onroutesuccess for the very first page function defaultRouteSuccess($event, next, last) { - nav.current && navHistory.push(nav.current); nav.next = new Page($location.path()); nav.next.transitionOnce('none'); navigate(nav.next);