1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-12 19:10:21 +03:00
inav-configurator/js/logicConditionsStatus.js
2024-02-26 11:58:56 -03:00

27 lines
No EOL
488 B
JavaScript

'use strict';
let LogicConditionsStatus = function () {
let self = {},
data = [];
self.set = function (condition, value) {
data[condition] = value;
}
self.get = function (condition) {
if (typeof data[condition] !== 'undefined') {
return data[condition];
} else {
return null;
}
}
self.getAll = function() {
return data;
}
return self;
};
module.exports = LogicConditionsStatus;