1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 01:05:12 +03:00
inav-configurator/js/globalFunctionsCollection.js
Pawel Spychalski (DzikuVx) 554bec3606 MSP layer for global functions
2020-04-05 18:09:15 +02:00

25 lines
No EOL
395 B
JavaScript

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