js: add some comments
This commit is contained in:
parent
9a5d711e28
commit
e12220dd63
@ -1,12 +1,28 @@
|
|||||||
var StaticManager = {
|
var StaticManager = {
|
||||||
|
/**
|
||||||
|
* @type {string[]}
|
||||||
|
*/
|
||||||
loadedStyles: [],
|
loadedStyles: [],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {object}
|
||||||
|
*/
|
||||||
versions: {},
|
versions: {},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string[]} loadedStyles
|
||||||
|
* @param {object} versions
|
||||||
|
*/
|
||||||
init: function(loadedStyles, versions) {
|
init: function(loadedStyles, versions) {
|
||||||
this.loadedStyles = loadedStyles;
|
this.loadedStyles = loadedStyles;
|
||||||
this.versions = versions;
|
this.versions = versions;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @param {string} theme
|
||||||
|
* @param {function} callback
|
||||||
|
*/
|
||||||
loadStyle: function(name, theme, callback) {
|
loadStyle: function(name, theme, callback) {
|
||||||
var url, id;
|
var url, id;
|
||||||
if (!window.appConfig.devMode) {
|
if (!window.appConfig.devMode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user