[gnome-maps] storedRoute: Fix transportation guard at init
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] storedRoute: Fix transportation guard at init
- Date: Sun, 23 Aug 2015 17:27:24 +0000 (UTC)
commit 93cb6657622ace4879dbb479fb31c06010b87758
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sun Aug 23 19:26:10 2015 +0200
storedRoute: Fix transportation guard at init
The way we checked for transportation parameter made
the CAR mode be interpreted as null.
src/storedRoute.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/storedRoute.js b/src/storedRoute.js
index 5556691..16f761d 100644
--- a/src/storedRoute.js
+++ b/src/storedRoute.js
@@ -37,7 +37,7 @@ const StoredRoute = new Lang.Class({
let route = params.route;
delete params.route;
- this._transportation = params.transportation || null;
+ this._transportation = params.transportation;
delete params.transportation;
this.route = new Route.Route();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]