From a317fc87a87c0941ec342ca26a93e2ac15f9d138 Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Fri, 18 Sep 2015 11:42:44 -0600 Subject: [PATCH] Refactored the display of first hop --- chrome/content/pb-overlay.js | 31 ++++++++++++------------------- chrome/content/tb-overlay.js | 31 ++++++++++++------------------- 2 files changed, 24 insertions(+), 38 deletions(-) diff --git a/chrome/content/pb-overlay.js b/chrome/content/pb-overlay.js index b68d3ed..b01c666 100644 --- a/chrome/content/pb-overlay.js +++ b/chrome/content/pb-overlay.js @@ -271,12 +271,9 @@ var mailHopsDisplay = var displayText='' , distanceText='' , image='chrome://mailhops/content/images/local.png' - , city=null - , state=null - , countryName=null - , gotFirst=false , secureToolTipText=false - , weather=null; + , weather=null + , first=null; //remove child details while(this.resultDetails.firstChild) { @@ -310,16 +307,10 @@ var mailHopsDisplay = for(var i=0; i 0){ if(this.options.unit=='mi') diff --git a/chrome/content/tb-overlay.js b/chrome/content/tb-overlay.js index abffc87..4b264d1 100644 --- a/chrome/content/tb-overlay.js +++ b/chrome/content/tb-overlay.js @@ -173,11 +173,8 @@ var mailHopsDisplay = var displayText='' , distanceText='' , image='chrome://mailhops/content/images/local.png' - , city=null - , state=null - , countryName=null - , gotFirst=false - , weather=null; + , weather=null + , first=null; //remove child details while(this.resultDetails.firstChild) { @@ -192,16 +189,10 @@ var mailHopsDisplay = } for(var i=0; i 0){ if(this.options.unit=='mi')