Skip to content

Commit

Permalink
[changed] Change Navigation to return the result of goBack()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
codegoat committed Feb 12, 2015
1 parent d69f1c1 commit 62c49d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var Navigation = {
* Transitions to the previous URL.
*/
goBack: function () {
this.context.goBack();
return this.context.goBack();
}

};
Expand Down

0 comments on commit 62c49d2

Please sign in to comment.