Removed redundant undefined check, and renamed allTimeSystems to getAllTimeSystems

This commit is contained in:
Henry
2017-04-28 16:27:07 -07:00
parent f17417a541
commit 52b6815687
3 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ define([], function () {
return function (openmct) {
function getTimeSystem(key) {
return openmct.time.allTimeSystems().filter(function (timeSystem) {
return openmct.time.getAllTimeSystems().filter(function (timeSystem) {
return timeSystem.key === key;
})[0];
}
@ -68,7 +68,7 @@ define([], function () {
}
var configForTimeSystem = config.menuOptions.filter(function (menuOption) {
return menuOption.timeSystem === (timeSystem && timeSystem.key) && menuOption.clock === (clock && clock.key);
return menuOption.timeSystem === timeSystem.key && menuOption.clock === (clock && clock.key);
})[0];
if (configForTimeSystem !== undefined) {