mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-12 19:10:21 +03:00
27 lines
No EOL
488 B
JavaScript
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; |