From c2f9fbb55eddfb2a4863a132f97c92949668b7c7 Mon Sep 17 00:00:00 2001 From: ZachTRice Date: Wed, 6 Sep 2017 12:04:34 -0400 Subject: [PATCH] Removed capitalizeFirstLetter function, replaced with lodash's startCase --- web/js/layers/wv.layers.modal.js | 2 +- web/js/util/wv.util.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.js index d574d0ae09..295fd43fee 100644 --- a/web/js/layers/wv.layers.modal.js +++ b/web/js/layers/wv.layers.modal.js @@ -511,7 +511,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) { if (layer.layergroup && layer.layergroup.indexOf("reference_orbits") !== -1) { var orbitTitle; if (layer.daynight && layer.track) { - orbitTitle = wv.util.capitalizeFirstLetter(layer.daynight) + "/" + wv.util.capitalizeFirstLetter(layer.track); + orbitTitle = _.startCase(layer.track) + "/" + _.startCase(layer.daynight); } $label.empty() diff --git a/web/js/util/wv.util.js b/web/js/util/wv.util.js index 537e710930..d09f8b52b7 100644 --- a/web/js/util/wv.util.js +++ b/web/js/util/wv.util.js @@ -799,11 +799,6 @@ wv.util = (function(self) { return value; }; - - self.capitalizeFirstLetter = function(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - }; - return self; })(wv.util || {});