1
0
Fork 0
mirror of synced 2024-09-16 17:40:04 +12:00
appwrite/public/scripts/services/di.js
2019-05-09 09:54:42 +03:00

30 lines
No EOL
706 B
JavaScript

(function (window) {
"use strict";
window.Litespeed.container.set('di', function () {
var list = {
'load': true
};
return {
listen: function (event, callback) {
if(list[event]) {
callback();
}
document.addEventListener(event, callback);
},
report: function (event) {
list[event] = true;
},
check: function(event) {
return (list[event]);
},
reset: function () {
list = {'load': true};
},
list: list
};
}, true);
})(window);