1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00
inav-configurator/js/logicConditionsCollection.js
2019-03-10 14:39:32 +01:00

25 lines
No EOL
376 B
JavaScript

'use strict';
let LogicConditionsCollection = function () {
let self = {},
data = [];
self.put = function (element) {
data.push(element);
};
self.get = function () {
return data;
};
self.flush = function () {
data = [];
};
self.getCount = function () {
return data.length
}
return self;
};