From 62c49d2925785a4184860accdc125fdeb0ad4806 Mon Sep 17 00:00:00 2001 From: Travis Simpson Date: Thu, 12 Feb 2015 12:24:47 -0800 Subject: [PATCH] [changed] Change Navigation to return the result of goBack() Upgrade path: The goBack function now returns true (on successful back) or false (no react-router history to navigate back to), previously the return from goBack was always undefined. --- modules/Navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Navigation.js b/modules/Navigation.js index 38a7e70c6f..2086a18480 100644 --- a/modules/Navigation.js +++ b/modules/Navigation.js @@ -64,7 +64,7 @@ var Navigation = { * Transitions to the previous URL. */ goBack: function () { - this.context.goBack(); + return this.context.goBack(); } };