[Time Conductor] Simplify passing in of axis type

...in PlotAxis. Also avoids triggering failures of existing tests.
This commit is contained in:
Victor Woeltjen 2015-10-27 15:39:20 -07:00
parent f30a2dd791
commit 5ff2e6b652
3 changed files with 4 additions and 4 deletions

View File

@ -233,8 +233,8 @@ define(
// Initialize axes; will get repopulated when telemetry
// metadata becomes available.
$scope.axes = [
new PlotAxis("domain", [], AXIS_DEFAULTS[0]),
new PlotAxis("range", [], AXIS_DEFAULTS[1])
new PlotAxis("domains", [], AXIS_DEFAULTS[0]),
new PlotAxis("ranges", [], AXIS_DEFAULTS[1])
];
// Subscribe to telemetry when a domain object becomes available

View File

@ -87,7 +87,7 @@ define(
}
metadatas.forEach(function (m) {
(m[axisType + 's'] || []).forEach(function (option) {
(m[axisType] || []).forEach(function (option) {
var key = option.key;
if (!optionKeys[key] && !newOptions[key]) {
toAdd.push(option);

View File

@ -80,4 +80,4 @@ define(
});
}
);
);