Permalink
Browse files

Swapped direction and stop name.

  • Loading branch information...
1 parent f98844f commit 1b58fe74adb21a38fb48470a837d7943f1d5ee66 @st3fan committed Mar 31, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 resources/public/index.js
@@ -106,9 +106,9 @@ app.controller('PredictionsController', function ($scope, $http, $timeout) {
_.each(prediction.directions, function (direction) {
var line = {route: prediction.route.tag,
direction: direction.title[0],
- stopName: simplifyDirectionName(direction.title),
+ name: simplifyDirectionName(direction.title),
times: [],
- name: getStopName(location.name, prediction.stop.tag) };
+ stopName: getStopName(location.name, prediction.stop.tag) };
_.each(direction.predictions, function(prediction) {
if (prediction.minutes > 1) {
line.times.push(prediction.minutes);
@@ -126,9 +126,9 @@ app.controller('PredictionsController', function ($scope, $http, $timeout) {
_.each(prediction.directions, function (direction) {
var line = {route: prediction.route.tag,
direction: direction.title[0],
- stopName: simplifyDirectionName(direction.title),
+ name: simplifyDirectionName(direction.title),
times: [],
- name: prediction.stop.title };
+ stopName: prediction.stop.title };
_.each(direction.predictions, function(prediction) {
if (prediction.minutes > 0) {
line.times.push(prediction.minutes);

0 comments on commit 1b58fe7

Please sign in to comment.