summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htdocs/js/common/30-static-manager.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/htdocs/js/common/30-static-manager.js b/htdocs/js/common/30-static-manager.js
index 4406ddd..8899d2b 100644
--- a/htdocs/js/common/30-static-manager.js
+++ b/htdocs/js/common/30-static-manager.js
@@ -1,12 +1,28 @@
var StaticManager = {
+ /**
+ * @type {string[]}
+ */
loadedStyles: [],
+
+ /**
+ * @type {object}
+ */
versions: {},
+ /**
+ * @param {string[]} loadedStyles
+ * @param {object} versions
+ */
init: function(loadedStyles, versions) {
this.loadedStyles = loadedStyles;
this.versions = versions;
},
+ /**
+ * @param {string} name
+ * @param {string} theme
+ * @param {function} callback
+ */
loadStyle: function(name, theme, callback) {
var url, id;
if (!window.appConfig.devMode) {