diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 12:41:24 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 12:41:24 +0300 |
commit | e12220dd63e9c91d87670c1ab413ba3d090c164d (patch) | |
tree | 921570616620bdbb3d00bb5f606fedd0ccea3f8f /htdocs/js/common | |
parent | 9a5d711e287fc22586fb069d43f39c399e391ab5 (diff) |
js: add some comments
Diffstat (limited to 'htdocs/js/common')
-rw-r--r-- | htdocs/js/common/30-static-manager.js | 16 |
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) { |