1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

MSP layer for global functions

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-04-05 18:09:15 +02:00
parent 7f4ec9a559
commit 554bec3606
6 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,25 @@
'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;
}